Skip to content

Commit c79511b

Browse files
author
Peter Amstutz
committed
Adjust line numbers to start from 1 in javascript error printout.
1 parent bf7d6b5 commit c79511b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cwltool/sandboxjs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def term():
4848
tm.cancel()
4949

5050
def fn_linenum():
51-
return "\n".join("%04i %s" % (i, b) for i, b in enumerate(fn.split("\n")))
51+
return "\n".join("%04i %s" % (i+1, b) for i, b in enumerate(fn.split("\n")))
5252

5353
if killed:
5454
raise JavascriptException("Long-running script killed after %s seconds.\nscript was:\n%s\n" % (timeout, fn_linenum()))

0 commit comments

Comments
 (0)