Commit d7895e40 authored by Kevin Lyda's avatar Kevin Lyda 💬
Browse files

Sigh, actually display the error better.

parent bb157ab1
......@@ -55,8 +55,8 @@ def cobol_Renumber():
try:
last_line_no = int(lines[i][:6])
except ValueError:
print('Malformed line (%d) - has non-numbers in columns 1-6' % i - 1)
return
print('Error: line %d has non-numbers in columns 1-6' % (i + 1))
return
if gap:
delta = math.floor((last_line_no - gap['last_line_no']) /
(i - gap['i'] + 1))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment