aboutsummaryrefslogtreecommitdiff
path: root/pretty_errors.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pretty_errors.lua')
-rw-r--r--pretty_errors.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/pretty_errors.lua b/pretty_errors.lua
index f5de557..afb1793 100644
--- a/pretty_errors.lua
+++ b/pretty_errors.lua
@@ -58,6 +58,10 @@ format_error = function(err)
end
end
end
+ if i > err_linenum + 1 + 5 then
+ err_msg = err_msg .. "\n ...\n"
+ break
+ end
end
end
local box_width = 70