In July, 1879, the parties entered into an agreement in writing by which the plaintiff agreed to erect for the defendant a hotel building in the town of Webster, N. Y., within three months, for the sum of $3,150, payable in installments,—$1,000 when the frame was erected, $1,000 when the mason work and plastering were completed, and the balance when the entire work was finished. The defendant, as the work progressed, paid the first two installments, of $1,000 each, to the plaintiff; and on January 8, 1880, he paid him the further sum of $1,000. The referee found that the building was substantially completed on or before the day last mentioned; that there were some slight defects in the building caused by inadvertence of the builder, but that they, and the deviations from the contract, were waived, and the building accepted by the defendant as finished, on or prior to January 8,1880; and that the plaintiff was entitled to recover the residue of the contract price, and -$205,69 for extra work, with interest from that day; and directed judgment accordingly. The evidence on the part of the defendant tends to prove that in many respects the plaintiff had not performed the contract, and that the defects resulting from such failure are quite substantial and pervasive. By the ■evidence, the conclusion apparently was warranted that the default of the plaintiff was such that he was not entitled to recover upon the contract. The performance of the agreement on the part of the plaintiff was a condition precedent to recovery, unless such performance was waived by the defendant, in this class of cases, however, the condition precedent may not require literal performance; but when the contractor has in good faith intended to comply with his agreement, and has substantially done so, slight defects, susceptible •of remedy, for which allowance may be made by way of adequate indemnity to the other party, may not be in the way of recovery upon the contract, subject to such allowance for damages. Woodward v. Fuller, 80 N. Y. 312.
The same remarks are applicable to the matter of the defendant’s counterclaim alleged; and in respect to that it may also be suggested that there is no-request or refusal to find upon the subject. It is therefore unnecessary to refer specifically to the evidence bearing upon those questions of fact, for the purposes of this review. "VVe have not, however, overlooked any of the evidence, or failed to appreciate the very thorough analysis made of it by the argument of the learned counsel for the defendant, which but for the proposition before stated would properly require and have a more extended expression of consideration.
The contention that recovery upon the contract cannot be supported because the action was upon the quantum meruit is not sustained. Ho such question was raised upon the trial, and it is not available when raised for the first time upon appeal. Then the cause of action alleged is not entirely remote or distinct from that on which recovery was had. It was, as alleged, for materials furnished, and work done, in the construction of a hotel for the defendant, which is the subject of the contract in question. Southwick v. Bank, 84 N. Y. 420.
The plaintiff called as a witness one Wheat, who was his subcontractor in the work of construction of the building in question, and examined him at considerable length; and, after the defendant had proceeded for some time with the cross-examination of the witness, the further cross-examination “ was suspended by the adjournment of the hearing to June 12, 1882,” when the hearing was resumed, and the defendant’s counsel called for the witness for further cross-examination. The witness Wheat had in the mean time died. He died June 11th. The defendant’s counsel thereupon moved that all of the testimony of the witness be stricken out; also that if not all be stricken out, then that certain specified portions of his evidence given upon his direct examination be stricken out. The referee thereupon did strike out certain portions of the testimony given by the witness upon his direct examination, “as to which he deemed no cross-examination had been had,” which did not embrace-all of that specified by the defendant’s counsel in his motion, and allowed the-residue to remain. Exception was taken by the defendant. The referee properly denied the motion to strike out all the evidence of the witness. The question arises upon the exception to the refusal to strike out the portions permitted to remain of those specilied in the defendant’s motion. The view of the referee evidently was that the cross-examination taken had relation to the subject of the portions allowed to remain of those embraced within such specifications of the evidence in chief of the witness. While this was correct as-to some of it, there were other portions of it that do not seem to have been covered by the cross-examination. A party is entitled to the opportunity and benefit, upon a trial, of the cross-examination of a witness whose testimony in chief has been taken by the adverse party;, and if without his fault, and for
There was a large number of exceptions taken by the defendant to the exclusion and reception of evidence on the trial, some of which require attention. After making the contract before mentioned, with the defendant, the plaintiff, by an agreement of the same date with Wheat, employed the latter to do the work of construction of the building. Wheat became a subcontractor of the plaintiff to that extent, and proceeded with the work. By witnesses called on the part of the defendant, the latter offered to prove statements made by Wheat in respect to the portion of the work in which he was ■at the time engaged. The evidence was excluded, and exception taken. There were several such offers and rulings; and, without specifying them with particularity, we think the rulings, so far as they excluded the evidence •of what he said in reference to the character of the work and materials as to which he was at the time engaged in performing and using, were erroneously made. Those statements were of such a character that it cannot be seen that the defendant may not have been prejudiced by their exclusion. They were ■admissible as part of the res gestee. They may have been treated as characterizing the acts in which he was then engaged, and may have had some bearing ■on the question of good faith, which was involved in the considerations presented upon the trial, bearing upon the plaintiff’s right of recovery on the •contract. The plaintiff, by this contract of employment, had placed Wheat in the relation to .the work which he had assumed by his contract with the -defendant. This did not change his relation to the latter in respect to the 'work, or his responsibility for the acts of his representative, so created, in its
Haight and Dwight, JJ., concur.