Skip to content
Permalink
Browse files

Chore: Provide debug log for parser errors (#12474)

  • Loading branch information
bradzacher authored and platinumazure committed Oct 21, 2019
1 parent 7c8bbe0 commit 61749c94bd8a2ebcdfb89e0cd48c4a029a945079
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/linter/linter.js
@@ -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: {

0 comments on commit 61749c9

Please sign in to comment.