Skip to content

Commit

Permalink
Pass error code to error handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
danyaPostfactum committed Mar 21, 2014
1 parent e8cf004 commit 5695aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/TreeBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -2960,7 +2960,7 @@ TreeBuilder.prototype.parseError = function(code, args) {
if (!this.errorHandler)
return;
var message = formatMessage(messages[code], args);
this.errorHandler.error(message, this.tokenizer._inputStream.location());
this.errorHandler.error(message, this.tokenizer._inputStream.location(), code);
};

/**
Expand Down

0 comments on commit 5695aaa

Please sign in to comment.