Opinion by
Greene, J.Assumpsit and attachment commenced by Thomas Mitchell against W. Elliot, before a *238justice of the peace. Judgment for the plaintiff. Defendant took the case to the district court by writ of certiorari. The affidavit upon which the certiorari was issued, alleged as error in the proceedings of the justice, that he refused to dismiss the suit, on the ground of defects in the affidavit and bond for the writ of attachment. In the district court, defendant moved to dismiss the writ of certiorari for reasons alleged, and,this motion was sustained. The third reason assigned, and the only one necessary to be considered, is, that the errors alleged in the attachment affidavit are insufficient to authorize the issuing of the writ of certiorari.
It is argued by counsel for the appellant that if the affidavit for a certiorari is filed within the time and with th-' statements required by the statute, the writ should issue i-a writ of right, and hence it is claimed that the writ should not have been dismissed. But we are of the opinion that where the grounds of error alleged in the affidavit are p pably insufficient and do not show error before the justic that the certiorari may properly be dismissed by the c trict court on a motion made before the hearing of the cr This view is not in conflict with the statute which aut izes the district court, after hearing the case, to give ji ment as the right of the matter may appear, or to affir reverse the judgment in whole or in part. B.ev........ 337, § 5.
Where the affidavit does not show prima facie some ground of error, where it does not contain some averment that would justify a change in the judgment of the justice, there can be no necessity or propriety in bringing the case to a formal hearing. In such a case the certiorari would be without foundation and should be disposed of in the most summary manner, consistent with the rights of the parties, the ends of justice, and the rules of law.
But it is urged that the affidavit in the. case at bar, contains averments of error which would justify the court in *239hearing the certiorari proceedings, and in reversing tk© judgment of the justice. The affidavit alleges only that th® justice refused to dismiss the suit for defects in the attachment affidavit and bond. Those defects, if material, would justify the justice in dissolving the attachment, but they could be no ground for dismissing' the suit. Such defects in the attachment proceeding could not impair the plaintiff’s causo of action or 'defeat his right to recover against the defendant; they could only affect his attachment lien upon defendant’s property. The attachment, and the suit are distinct matters, and any error or irregularity in the former cannot°affect the latter. The suit should be tried and determined upon its own merits, without any regard to the attachment, and so far as we can judge by the record before us, this suit was 'so decided by the justice. As the certiorari affidavit alleges no error in the trial or decision of the suit, we think the writ was correctly dismissed.
J. M. Pó7'ry and G. Bates, for appellant. J. M. Barnard, for appellee.Judgment affirmed,