cli: increase backtrace size

This commit is contained in:
0x1eef 2024-04-26 23:39:20 -03:00
parent a2e12dcae8
commit 73c80f116a

View file

@ -2,6 +2,8 @@
class Twenty::Command
module RescueMixin
FRAME_MAX = 15
def run(...)
super(...)
rescue => ex
@ -18,7 +20,7 @@ class Twenty::Command
private
def format_backtrace(backtrace)
backtrace.last(5).map do
backtrace.last(FRAME_MAX).map do
" #{_1.gsub(Dir.getwd, "")}"
end.join("\n")
end