If, on examination, it shall not appear that there is just cause to fear that an offense will be committed by the party complained of, he shall be discharged, and the person who made the complaint shall be taxed with the costs, for which execution may be issued. But if it shall appear that the defendant had threatened to commit an offense, or had so acted as to justify the apprehensions of the person complaining that there was danger of the commission of an offense, the party complained of shall be taxed with the costs of the proceeding, although he may not be required to give bond; and, if he shall be required to furnish bond, he shall be taxed with all costs, for which execution may be issued.