Skip to content

Commit

Permalink
chore: add details to rights conservation assertion msg
Browse files Browse the repository at this point in the history
for help diagnosing #4407
  • Loading branch information
Chris-Hibbert committed Feb 11, 2022
1 parent 27271cd commit 9eec757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/zoe/src/contractFacet/rightsConservation.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const assertEqualPerBrand = (leftSumsByBrand, rightSumsByBrand) => {
const { leftSum, rightSum } = getSums(brand);
assert(
AmountMath.isEqual(leftSum, rightSum),
X`rights were not conserved for brand ${brand}`,
X`rights were not conserved for brand ${brand} ${leftSum.value} != ${rightSum.value}`,
);
});
};
Expand Down

0 comments on commit 9eec757

Please sign in to comment.