diff --git a/src/Parser.js b/src/Parser.js index 4d333269e9..d53aebef5c 100644 --- a/src/Parser.js +++ b/src/Parser.js @@ -240,7 +240,7 @@ module.exports = class Parser { break; } default: { - const errMsg = 'Token with "' + this.token.type + '" type was not found.'; + const errMsg = 'Token with "' + token.type + '" type was not found.'; if (this.options.silent) { console.error(errMsg); return;