Upon the trial of an action under the provisions of this chapter, the plaintiff shall recover the amount of damages sustained and the expenses of keeping the trespassing animal or animals during the time he has restrained and retained the custody thereof.
SDCL 40-28-23