syntax-error => syntax

pull/217/head
Sylvestre Ledru 6 years ago
parent d18ca0617a
commit e3a7640fea

@ -530,7 +530,7 @@ class CommandLineTestCase(unittest.TestCase):
out, err = sys.stdout.getvalue(), sys.stderr.getvalue() out, err = sys.stdout.getvalue(), sys.stderr.getvalue()
self.assertEqual(out, ( self.assertEqual(out, (
'stdin:2:10: [error] syntax error: ' 'stdin:2:10: [error] syntax error: '
'mapping values are not allowed here (syntax-error)\n')) 'mapping values are not allowed here (syntax)\n'))
self.assertEqual(err, '') self.assertEqual(err, '')
def test_run_no_warnings(self): def test_run_no_warnings(self):

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

Loading…
Cancel
Save