diff --git a/index.js b/index.js index dbf5860..a6083d4 100644 --- a/index.js +++ b/index.js @@ -221,7 +221,7 @@ exports.parse = function (source, _, options) { } function unexpectedToken() { - throw new SyntaxError('Unexpected token ' + source[pos] + ' in JSON at position ' + pos); + throw new SyntaxError('Unexpected token ' + source[pos] + ' in JSON at position ' + pos + ' on line ' +line); } function wasUnexpectedToken() {