We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edc5948 commit 3bfbf31Copy full SHA for 3bfbf31
1 file changed
src/jsonselect.js
@@ -41,7 +41,7 @@
41
42
// throw an error message
43
function te(ec, context) {
44
- throw new Error(errorCodes[ec] + " in '" + context + "'");
+ throw new Error(errorCodes[ec] + ( context && " in '" + context + "'"));
45
}
46
47
// THE LEXER
0 commit comments