diff --git a/moonscript/errors.lua b/moonscript/errors.lua index 85266cf..58d1d9c 100644 --- a/moonscript/errors.lua +++ b/moonscript/errors.lua @@ -80,10 +80,10 @@ rewrite_traceback = function(text, err) fname, ":", reverse_line_number(fname, tbl, line, cache), + ": ", "(", line, - ")", - ": ", + ") ", msg }) else diff --git a/moonscript/errors.moon b/moonscript/errors.moon index c74f69d..3bba447 100644 --- a/moonscript/errors.moon +++ b/moonscript/errors.moon @@ -62,8 +62,9 @@ rewrite_traceback = (text, err) -> concat { fname, ":" reverse_line_number(fname, tbl, line, cache) - "(", line, ")" - ": ", msg + ": " + "(", line, ") " + msg } else trace