fix: Improve loan invariant message (#6668)

This commit is contained in:
Vito Tumas
2026-03-26 13:40:26 +01:00
committed by Ed Hennis
parent 10731f90b3
commit a92483e077

View File

@@ -2593,8 +2593,8 @@ ValidLoan::finalize(
after->at(sfPrincipalOutstanding) == beast::zero &&
after->at(sfManagementFeeOutstanding) == beast::zero)
{
JLOG(j.fatal()) << "Invariant failed: Loan with zero payments "
"remaining has not been paid off";
JLOG(j.fatal()) << "Invariant failed: Fully paid off Loan still "
"has payments remaining";
return false;
}
if (before &&