diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-09-14 19:17:09 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-09-14 19:17:16 -0700 |
| commit | e22c35681f90740b4f5006c30b3f154ebd1f8ea2 (patch) | |
| tree | c7f04d968bade120ebf75cfa0b9f073602917122 /pretty_errors.lua | |
| parent | 7112af7cb6ee52f4ef9664db9c03db52d8c73ac9 (diff) | |
Auto-upgraded everything.
Diffstat (limited to 'pretty_errors.lua')
| -rw-r--r-- | pretty_errors.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pretty_errors.lua b/pretty_errors.lua index ae6b48f..9dad1eb 100644 --- a/pretty_errors.lua +++ b/pretty_errors.lua @@ -25,7 +25,7 @@ format_error = function(err) else pointer = (" "):rep(err_linepos + #fmt_str:format(0) - 1) .. "⬆" end - local err_msg = "\027[33;41;1mParse error at " .. tostring(err.filename) .. ":" .. tostring(err_linenum) .. "\027[0m" + local err_msg = "\027[33;41;1mParse error at " .. tostring(err.filename or '???') .. ":" .. tostring(err_linenum) .. "\027[0m" for i = err_linenum - context, err_linenum - 1 do do local line = string2.line(err.source, i) |
