Permalink
Browse files

in case of a SyntaxError provide the generated code that caused the e…

…rror as a member of the error object
  • Loading branch information...
1 parent 94ae584 commit c715cc54611018c26d4137bb96fd19accb3aa4d1 Stefan Guggisberg committed Mar 7, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 index.js
View
@@ -333,6 +333,7 @@ var compile = exports.compile = function(str, options){
err.message += options.filename
? ' in ' + filename
: ' while compiling qejs';
+ err.source = str;
}
throw err;
}

0 comments on commit c715cc5

Please sign in to comment.