156. If such notice be not so given, the Court or Judge, on the hearing of the action, may direct that any costs, occasioned. by the neglect to give such notice, shall be borne by the party neglecting to give the same, whatever the result of the action may be,