cli: increase backtrace size
This commit is contained in:
parent
a2e12dcae8
commit
73c80f116a
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
class Twenty::Command
|
class Twenty::Command
|
||||||
module RescueMixin
|
module RescueMixin
|
||||||
|
FRAME_MAX = 15
|
||||||
|
|
||||||
def run(...)
|
def run(...)
|
||||||
super(...)
|
super(...)
|
||||||
rescue => ex
|
rescue => ex
|
||||||
|
@ -18,7 +20,7 @@ class Twenty::Command
|
||||||
private
|
private
|
||||||
|
|
||||||
def format_backtrace(backtrace)
|
def format_backtrace(backtrace)
|
||||||
backtrace.last(5).map do
|
backtrace.last(FRAME_MAX).map do
|
||||||
" #{_1.gsub(Dir.getwd, "")}"
|
" #{_1.gsub(Dir.getwd, "")}"
|
||||||
end.join("\n")
|
end.join("\n")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue