Skip to content

Commit 3d09601

Browse files
Yousef Sultankaste
authored andcommitted
Fix crashing when 'line' is not provided by eslint (#283)
* Fix crashing when 'line' is not provided by eslint Signed-off-by: Yousef Sultan <[email protected]> * Send config errors to logger Signed-off-by: Yousef Sultan <[email protected]> * `continue` if 'line' is not present
1 parent 4c1a0e5 commit 3d09601

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

linter.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ def find_errors(self, output):
8686
# apply line_col_base manually
8787
column = column - 1
8888

89+
if 'line' not in match:
90+
logger.error(match['message'])
91+
self.notify_failure()
92+
continue
93+
8994
yield LintMatch(
9095
match=match,
9196
filename=filename,

0 commit comments

Comments
 (0)