Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Chore: Provide debug log for parser errors (#12474)
- Loading branch information
Showing
with
2 additions
and
0 deletions.
-
+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: { |
|
|
|