Fix line numbers

develop
lethosor 2015-02-14 21:43:10 -05:00
parent a19ca89e9f
commit f91a5767cd
1 changed files with 1 additions and 1 deletions

@ -26,7 +26,7 @@ class Linter(object):
failures = []
for i, line in enumerate(lines):
if not self.check_line(line):
failures.append(i)
failures.append(i + 1)
if len(failures):
raise LinterError('%s: %s' % (self.msg, self.display_lines(failures, len(lines))))