When an injunction to stay proceedings after judgment for debt or damages shall be dissolved, the court shall award such damages not exceeding ten percent on the judgment, as the court may deem right, against the party in whose favor the injunction issued.