Skip to content

Commit

Permalink
Chore: Provide debug log for parser errors (#12474)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher authored and platinumazure committed Oct 21, 2019
1 parent 7c8bbe0 commit 61749c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/linter/linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,8 @@ function parse(text, parser, providedParserOptions, filePath) {
// If the message includes a leading line number, strip it:
const message = `Parsing error: ${ex.message.replace(/^line \d+:/iu, "").trim()}`;

debug("%s\n%s", message, ex.stack);

return {
success: false,
error: {
Expand Down

0 comments on commit 61749c9

Please sign in to comment.