Skip to content

Commit

Permalink
Use exit! instead of exit (#602)
Browse files Browse the repository at this point in the history
We found that using `exit` here would conflict with the `debug` gem on Ruby 3.2. It would hang and never exit when tests completed, similar to this issue: ruby/debug#336 (comment)
  • Loading branch information
ghiculescu committed Apr 4, 2024
1 parent 5b6a150 commit a14367e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/teaspoon/utility.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def self.root

def self.abort(message = nil, code = 1)
STDOUT.print("#{message}\n") if message
exit(code)
exit!(code)
end

module Utility
Expand Down

0 comments on commit a14367e

Please sign in to comment.