Action for the foreclosure of a mechanic’s lien.
The plaintiffs contracted with the defendant StufHebeem, who was the lessee of certain lands owned by the defendants Bashore, to do the work of painting, varnishing, and graining upon some buildings which Stufiiebeem was constructing for himself upon said lands, upon the completion of which they were to receive $145.
* The main issue presented in the case was, whether the plaintiffs had completed the work according to their contract.
*511The court found that the plaintiffs had substantially complied with all the terms of said contract, and completed said work on or about the tenth' day of April, 1890, but that some small places in the houses were not properly grained and finished, and that the cost of properly finishing such places would be not more than five dollars, and thereupon gave judgment for the plaintiffs for the amount of the contract price after deducting said sum of five dollars.
1. It is contended by the appellants that the findings are contradictory, and do not support the judgment.
Neither of these propositions can be maintained.
The finding that the plaintiffs substantially complied with all the terms of their contract, and completed the work, is entirely consistent with the finding that some places in the houses were not properly grained and finished; and the finding that the cost of properly finishing such places would not be more than five dollars supports rather than contradicts the finding of substantial performance.
The performance of a contract need not in all cases be literal and exact, in order to entitle a party to compensation therefor. Esnecialty is this the rule in contracts for labor by mechanics or artisans, where the quality of the work done, or the manner of its performance, is the sole matter in dispute, and is to be decided upon conflicting testimony. In contracts for the construction or repair of buildings, a substantial performance of his contract is sufficient to entitle the contractor to compensation for the work done by him under the contract. If there has been no willful departure from its provisions, and no omission of any of its essential parts, and the contractor has in good faith performed all of its substantive terms, he will not be held to have forfeited his right to a recovery by reason of trivial defects or imperfections in the work performed. If the omission or imperfection is so slight that it cannot bo regarded as an integral or sub*512s'tantive part of the original contract, and the other party can be compensated therefor by a recoupment for damages, the contractor does not lose his right of action. (Wharton on Contracts, sec. 607; Ligget v. Smith, 3 Watts, 331; 27 Am. Dec. 358; Phillip v. Gallant, 62 N. Y. 264; Hayward v. Leonard, 7 Pick. 185; 19 Am. Dec. 269; Sinclair v. Tallmadge, 35 Barb. 604.) This rule is peculiarly applicable in a case where the other party has- received the benefit of what has been done, and is enjoying the fruits of the work'.
Section 1187 of the Code of Civil Procedure provides that: “Any trivial imperfection in the said work . . . . shall’not be deemed such a lack of completion as to prevent the filing of any lien.” If the lien can be “filed” notwithstanding such imperfection, it must follow that the claimant can foreclose his lien, and that the “trivial imperfection in the work” is no defense to the action. Whether the contract has been substantially performed is a question of fact which must be determined by the trial court in each instance from the facts and circumstances in that case, and the finding of the trial court upon that point is as conclusive as is its finding of any other fact.
The present case is before us upon the judgment roll alone. In the absence of the testimony upon this point, we are bound to assume that it was sufficient to support the finding that the plaintiffs substantially completed their contract, as "also the finding that the defendants rvould be fully compensated for any imperfection in the work by deducting five dollars from the contract price. If they can be thus compensated in damages, full justice is done to all parties by deducting that amount from the contract price, and allowing the contractor to recover for the work that has been done by him.
2. Appellants urge that it was error to order a sale of the interest of the defendants Bashore in the lands described in the judgment) and cite section 1185 of the *513Code of Civil Procedure as declaring that only the interest of the person causing the building to be repaired is subject to the lien. But it is found by the court that the defendants Bashore knew, at the time, of the construction of the said buildings, and of all the terms and conditions of the contract between the defendant Stufílebeeni and the plaintiffs at the time it was made, and also that on the completion of the work the defendant Rachel Bashore made a payment to the plaintiffs on account thereof. Section 1192 of the Code of Civil Procedure provides that when with such knowledge the owner fails to give notice that be will not be responsible for the same, his interest in the land shall be subject to the lien.
In West Coast Lumber Co. v. Newkirk, 80 Cal. 275, these sections were construed by this court on a similar state of facts, and it was held that the interest of the owner in the lands was subject to a lien for materials used in the construction of a building thereon, which was erected under a contract made by the owner of the leasehold estate. It was also held in that case that it was not necessary to aver that the owner of the realty did not give any notice that he would not be responsible for the coustruction of the building.
The judgment of the court below must be affirmed, and that court is directed, upon the Sling therein of the remittitur, to allow plaintiffs, as a part of their costs on this appeal, a reasonable fee for the services of their attorney in this court. (Code Civ. Proc., sec. 1195.)
Sharpstein, J., Paterson, J., De Haven, J., McFarland, J., Garoutte, J., and Beatty, C. J., concurred.