Skip to content

Commit

Permalink
engine: fix serialization of int bounds invariant error
Browse files Browse the repository at this point in the history
  • Loading branch information
eyelidlessness committed Dec 12, 2024
1 parent 7c13866 commit c0542be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xforms-engine/src/lib/codecs/IntValueCodec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const assertIntBounds = <T extends bigint | null>(value: T): T => {
if (value < INT_BOUNDS.MIN || value > INT_BOUNDS.MAX) {
throw new ValueTypeInvariantError(
'int',
`Unable to decode int value from ${JSON.stringify(value)}: expected value to be between ${INT_BOUNDS.MIN} and ${INT_BOUNDS.MAX} (inclusive)`
`Unable to decode int value from ${String(value)}: expected value to be between ${INT_BOUNDS.MIN} and ${INT_BOUNDS.MAX} (inclusive)`
);
}

Expand Down

0 comments on commit c0542be

Please sign in to comment.