aboutsummaryrefslogtreecommitdiff
path: root/pretty_errors.moon
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-09-15 15:39:38 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-09-15 15:39:57 -0700
commitf8cfdd0f2276afe2f924295c192256601db595db (patch)
treedbc479765e51b3172f03103eea7dd1f694914365 /pretty_errors.moon
parentb721356d8bff2631b90c5c091568327b2ca187fc (diff)
Better parsing of strings and handling of non-printable characters and
tabs.
Diffstat (limited to 'pretty_errors.moon')
-rw-r--r--pretty_errors.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/pretty_errors.moon b/pretty_errors.moon
index 5dafe99..300e2c7 100644
--- a/pretty_errors.moon
+++ b/pretty_errors.moon
@@ -44,7 +44,7 @@ format_error = (err)->
during, after = line\sub(1,err_linepos_end-1), line\sub(err_linepos_end,-1)
err_msg ..= "\n\027[2m#{fmt_str\format(i)}\027[0;41;30m#{during}\027[0m#{after}"
else
- err_msg ..= "\n\027[2m#{fmt_str\format(i)}\027[0m#{line}\027[0m"
+ err_msg ..= "\n\027[2m#{fmt_str\format(i)}\027[0;41;30m#{line}\027[0m"
box_width = 70
err_text = "\027[47;31;1m#{(" "..err.error)\wrap_to_1(box_width)\gsub("\n", "\n\027[47;31;1m ")}"