Skip to content

Commit e9d137f

Browse files
committed
Do not print a backtrace for SystemExit
We throw this whenever `exit` is used so it's not an uncaught error but just a quirk of ruby.
1 parent 0774fb6 commit e9d137f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/cm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ pre { |global,command,options,args| true }
3535
post { |global,command,options,args| true }
3636

3737
on_error do |exception|
38-
puts exception
39-
puts exception.backtrace
38+
if !exception.is_a?(SystemExit)
39+
puts exception
40+
puts exception.backtrace
41+
end
4042
end
4143

4244
exit run(ARGV)

0 commit comments

Comments
 (0)