Skip to content

Commit e20d7f2

Browse files
committed
fix: #35 - Adds nil check in case backtrace is empty
1 parent 9585bbc commit e20d7f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/leopard/errors.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def initialize(...)
99
end
1010

1111
def backtrace
12-
super[0..3] + ['... (truncated by Leopard)']
12+
(super || [])[0..3] + ['... (truncated by Leopard)']
1313
end
1414
end
1515

0 commit comments

Comments
 (0)