When it appears upon the default of the defendant, or upon trial in the action of replevin, that the goods were unlawfully taken or attached or unlawfully detained by the defendant, the plaintiff shall have judgment for his or her damages caused thereby, and his or her costs.
12 V.S.A. § 5338