Skip to content

Commit

Permalink
More descriptive message on Syntax Error
Browse files Browse the repository at this point in the history
When verbose is true, now the server will log also line number and
position of syntax errors while parsing javascript files
  • Loading branch information
Fabio Crisci committed Oct 15, 2012
1 parent ae5e06f commit 9c0550a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/interpreters/basic javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ exports.interpret = function (file, content, options) {
try {
var tree = parser.parse(content,false, true);
} catch (ex) {
console.error("Error instrumentig file", file, ex.message);
console.error("Error instrumentig file", file, options.verbose ? ex : ex.message);
var code = clientCode.formatContent(content);
code.error = true;
return code;
Expand Down

0 comments on commit 9c0550a

Please sign in to comment.