On the first day of January, 1874, the plaintiffs in error purchased of one Silas Pratt lot ten, in block thirty-six, in the city of Lincoln, the deed being made to E. Mary Gregory, the wife of John S. Gregory. The consideration stated in the deed was $1,200, to secure the payment of which the plaintiffs in error assigned to said Pratt a note for the sum of $1,100, secured by a mortgage on real estate, said note being due and payable November 20,1876, and drawing interest at the rate of seven per cent., payable semi-annually. To secure the payment of this note and mortgage the plaintiffs executed a mortgage to Pratt on the premises in question. The mortgage contained this among other provisions: “ If all of said conditions, agreements, and covenants are fully kept and fulfilled then this mortgage shall be void, but any failure of any of the terms and conditions for 'thirty days then at the option of said party of the second part this mortgage may be declared due for the sum of $1,100, with ten per cent, interest thereon from this date, arid proceed at once to foreclose the same in court.” The mortgage also contained this covenant: “It is hereby stipulated and agreed that said *360parties of the first part shall pay all liens and incumbrances on said premises when the same fall due, and hold said party of the second part harmless from the same, particular reference being made to a deed of trust or mortgage, now a lien on said premises, executed by Catherine E. Cullen to the Mechanics’ loan and saving association, to secure the sum of fourteen hundred dollars.” The notes and mortgages were assigned to the defendant Hartley. A decree was rendered in the court below for the defendant in error, the decree to draw interest at the rate of twelve per cent. The case is brought into this court by petition in error.
In Steele v. Russell, 5 Neb., 211, a case somewhat similar to this, the mortgage contained a provision that: “ If the said William A. Albright shall fay or cause to bepahcl the said sum of money, with the interest thereon, according to the tenor and effect of said promissory note, then these presents shall be void.” The condition of the mortgage in this case is as follows: “ This grant is intended as a mortgage to secure the payment of a note secured by mortgage of eleven hundred dollars, executed by Hector Gawley and Andrew Stevenson and secured by said mortgage on property at Newport, Monroe county, Michigan, and due and payable November 20, 1876, said $1,100 note drawing seven per cent, interest, payable semi-annually. Said parties of the-first part agree to make up the rate of interest on said note to ten per cent, per annum, payable to said Pratt semi-annually. This is also given to secure the payment of one hundred dollars, to be paid February 1, 1874, with interest at ten per cent. Said $1,100 is payable to Mary E. Gregory, or order, which said note for $1,100 said parties of the first part shall indorse over to said Pratt on or before January 13, 1874. If all of said conditions, agreements, and covenants are fully kept and fulfilled then this mortgage shall be void. But any failure of any of the terms and con*361ditions herein for thirty days, then at the option of the said party of the second part this mortgage may be declared due for the sum of $1,100 with ten per cent, interest thereon from this date, and proceed at once to foreclose the same in court,” etc.
The mortgage introduced in evidence was evidently drawn by some one not familiar with the business of conveyancing, and many of its terms are vague and indefinite, but this much is clear, that it was given to secure the payment of the Gawley and Stevenson note alone; and this is the. construction put upon the contract by the parties themselves, as the plaintiffs in the court below prayed for a decree for $1,100, with interest thereon.
The rule is well settled that if a condition or promise be only to indemnify and save harmless a party from some consequence, no action can b'e maintained until actual damage has been sustained by the plaintiff. But if the promise is to perform some act for the plaintiff’s benefit, the neglect to perform the act is a breach of the contract, and will give an immediate right of action. Stout v. Folger, 34 Iowa, 74. Lathrop v. Atwood, 21 Conn., 117. In re Negus, 7 Wend., 499. Thomas v. Allen, 1 Hill, 145. Churchill v. Hunt, 3 Denio, 321. Wilson v. Stilwell, 9 O. S., 467.
The rule of law will not be questioned, that when a purchaser of real estate agrees to assume and pay certain outstanding indebtedness against the vendor, and save him harmless from the same, if he fail to do so, it is not necessary, in order to give the vendor a right of action against him, that he should himself have first paid the debt which the purchaser assumed and agreed to pay.
The contract in this case, although it contains a promise to pay off a certain incumbrance, is in the nature of a contract of indemnity that the security held by *362Pratt should' not be impaired or destroyed by the plaintiffs permitting said lien to remain on the property.
It nowhere appears, nor is claimed, that Pratt or Hartley were in any manner liable on the Oullen mortgage, or that they would be injured in the least degree from the failure of the plaintiffs to pay the same, except so far as it impaired their lien. There appears to have been an absolute assignment of the Gawley and Stevenson note to Pratt. This is the note to secure the payment of which the plaintiffs gave the mortgage in question. It does not appear in either the pleadings or proof what has been done with this note. The plaintiffs in the court below introduced the mortgage in evidence on the trial, and evidence of the assignment to Hartley, and rested.
The authorities are uniform that the note is the debt, the mortgage a mere incident that passes with the debt. Foreclosure in this state is regulated by statute. At common law, the mortgagee might exercise all his rights at the same time, and pursue his remedy in equity, on the mortgage, and at law upon the evidence of debt, or covenant. 4 Kent’s Com., 183, and cases cited. But the statute has changed this rule in this state. Section 850 of the code of civil procedure provides that upon filing a petition for the foreclosure or satisfaction of a mortgage, the complaint shall state therein whether cony proceedings have been had at law for the recovery of the debt secured thereby, or any part thereof, and whether such debt or any part thereof has been collected and paid. This is an essential allegation in all actions for the foreclosure of mortgages. If an action has been commenced on the note, the petition must show either that the action has not proceeded to judgment, or if a judgment has been obtained, then that an execution against the property of the defendant (other than the mortgaged premises) has been returned unsatisfied in *363whole or in part, and the plaintiff’s remedy is exhausted. 2 Van Santvoords, Eq., 84.
The petition is clearly defective in this regard, and it may be questioned if it is not faulty in other particulars. The contract in this case was one made by the wife in relation to her own property, and she is bound by her Contracts. Webb v. Hoselton, 4 Neb., 308. Davis v. First National Bank, 5 Neb., 242.
The court has authority under the statute to render a decree drawing twelve per cent, interest only in cases where the debt upon which the decree is predicated was drawing that rate of interest. For the errors herein refered to the judgment of the district court is reversed and a new trial awarded.
Reversed and remanded.