Such amendments shall be allowed of the petition, answer and of any of the other proceedings in the attachment as shall be conducive to the attainment of the ends of substantial justice, and upon such terms as to continuance and costs as may seem proper. An amendment when made shall as against the principal defendant and as to claims against him existing at the time the attachment was issued relate back to the time of the levy of the attachment, unless otherwise directed. No attachment shall be quashed or dismissed for mere formal defects.
Va. Code § 8.01-545