To obtain the custody of ber two minor children, Amanda Sumner applied to tbe judge of the city court of Wrights-ville for a writ of habeas corpus against E. J.- Sumner, tbe uncle, and Mary Ann Sumner, tbe grandmother of such children. The, judge issued the writ, and, upon tbe bearing of tbe return to the same, awarded the custody of the children to the plaintiff; and tbe case is here upon a bill of exceptions sued, out by the defendants, in which they complain of the overruling of their demurrer to the plaintiff’s application for the writ, of the judge’s refusal to comply with their demand for a jury trial, of the admission of certain documentary evidence over their objection, and of the judgment awarding the custody of the children to the plaintiff. The demurrer to the application was both general and special. The special ground of the demurrer was, that the judge of the city court of Wrightsville has no power to issue the writ of habeas corpus, for the reasons, (1) that such power is vested exclusively in the judges of the superior courts and the ordinaries; (2) that the writ is an equitable proceeding, and the judge of such city court has no equitable jurisdiction. The demurrer, as well as the demand for a jury trial, is sufficiently dealt with in the headnotes.
The documentary evidence, which was admitted over the objection of the defendants that it was irrelevant, was a certified copy of *230a suit for alimony by Amanda Sumner against J. M. Sumner, in Johnson superior court, and an order of the judge of such court dismissing this suit. We are unable to see the relevancy of this suit, or anything set out in the petition or in the order of dismissal, and are clear that the defendants’ objection to this evidence should have been sustained. We would be at a loss, however, to understand how the defendants were hurt by the admission of this irrelevant evidence, but for the fact that the judge makes this note, explaining why it was admitted: “ The good faith of the claim by the defendants as to their right to the custody of the children was in issue, and this was admitted to show bad faith of defendants and him under whom they claimed.” As the evidence was clearly inadmissible, and as it appears from the judge’s note that he considered it as showing had faith on the part of the defendants and the father of the children, and as the judgment of the court was against the defendants, the error in admitting the evidence requires a reversal of the judgment awarding the custody of the children to the plaintiff. Judgment reversed.
By five Justices.