mirror of
https://github.com/leafo/moonscript.git
synced 2025-01-09 00:04:22 +00:00
move position of original line number in rewritten stack trace, fixes #75
This commit is contained in:
parent
8ddf76591a
commit
ca2dd78a21
@ -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
|
||||||
|
@ -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, ") "
|
"(", line, ") "
|
||||||
": ", msg
|
msg
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
trace
|
trace
|
||||||
|
Loading…
Reference in New Issue
Block a user