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,
|
||||
":",
|
||||
reverse_line_number(fname, tbl, line, cache),
|
||||
": ",
|
||||
"(",
|
||||
line,
|
||||
")",
|
||||
": ",
|
||||
") ",
|
||||
msg
|
||||
})
|
||||
else
|
||||
|
@ -62,8 +62,9 @@ rewrite_traceback = (text, err) ->
|
||||
concat {
|
||||
fname, ":"
|
||||
reverse_line_number(fname, tbl, line, cache)
|
||||
"(", line, ")"
|
||||
": ", msg
|
||||
": "
|
||||
"(", line, ") "
|
||||
msg
|
||||
}
|
||||
else
|
||||
trace
|
||||
|
Loading…
Reference in New Issue
Block a user