move position of original line number in rewritten stack trace, fixes #75

This commit is contained in:
leaf corcoran 2013-02-05 08:45:00 -08:00
parent 8ddf76591a
commit ca2dd78a21
2 changed files with 5 additions and 4 deletions

View File

@ -80,10 +80,10 @@ rewrite_traceback = function(text, err)
fname, fname,
":", ":",
reverse_line_number(fname, tbl, line, cache), reverse_line_number(fname, tbl, line, cache),
": ",
"(", "(",
line, line,
")", ") ",
": ",
msg msg
}) })
else else

View File

@ -62,8 +62,9 @@ rewrite_traceback = (text, err) ->
concat { concat {
fname, ":" fname, ":"
reverse_line_number(fname, tbl, line, cache) reverse_line_number(fname, tbl, line, cache)
"(", line, ")" ": "
": ", msg "(", line, ") "
msg
} }
else else
trace trace