Skip to content
Snippets Groups Projects
Commit d7895e40 authored by Kevin Lyda's avatar Kevin Lyda :speech_balloon:
Browse files

Sigh, actually display the error better.

parent bb157ab1
Branches master
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ def cobol_Renumber(): ...@@ -55,7 +55,7 @@ def cobol_Renumber():
try: try:
last_line_no = int(lines[i][:6]) last_line_no = int(lines[i][:6])
except ValueError: except ValueError:
print('Malformed line (%d) - has non-numbers in columns 1-6' % i - 1) print('Error: line %d has non-numbers in columns 1-6' % (i + 1))
return return
if gap: if gap:
delta = math.floor((last_line_no - gap['last_line_no']) / delta = math.floor((last_line_no - gap['last_line_no']) /
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment