Skip to content

Commit c0c392b

Browse files
authored
Updated Error MSG (L-765) to include value
This error message did not return the value in the error making it difficult to debug
1 parent 22b8800 commit c0c392b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/Jsonix-all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ Jsonix.Util.Ensure = {
762762
},
763763
ensureInteger : function(value) {
764764
if (!Jsonix.Util.Type.isNumber(value)) {
765-
throw new Error('Argument must be an integer, but it is not a number.');
765+
throw new Error('Argument [' + value + '] must be an integer, but it is not a number.');
766766
} else if (!Jsonix.Util.NumberUtils.isInteger(value)) {
767767
throw new Error('Argument [' + value + '] must be an integer.');
768768
}

0 commit comments

Comments
 (0)