Skip to content
Browse files

Only use context if one was provided

  • Loading branch information...
1 parent edc5948 commit 3bfbf315001bfa16fd1df7701a9a869770aa57bf @rwaldron rwaldron committed Jun 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jsonselect.js
View
2 src/jsonselect.js
@@ -41,7 +41,7 @@
// throw an error message
function te(ec, context) {
- throw new Error(errorCodes[ec] + " in '" + context + "'");
+ throw new Error(errorCodes[ec] + ( context && " in '" + context + "'"));
}
// THE LEXER

0 comments on commit 3bfbf31

Please sign in to comment.
Something went wrong with that request. Please try again.