Use 'syntax' as rule name upon syntax errors

This commit is contained in:
Sylvestre Ledru
2019-12-17 19:29:49 +01:00
committed by Adrien Vergé
parent 8fa9eb3ced
commit 43b95e99d1
2 changed files with 2 additions and 2 deletions

View File

@@ -180,7 +180,7 @@ def get_syntax_error(buffer):
except yaml.error.MarkedYAMLError as e:
problem = LintProblem(e.problem_mark.line + 1,
e.problem_mark.column + 1,
'syntax error: ' + e.problem)
'syntax error: ' + e.problem + ' (syntax)')
problem.level = 'error'
return problem