summaryrefslogtreecommitdiff
path: root/lib/bundler/friendly_errors.rb
diff options
context:
space:
mode:
authorDavid Kellum <dek-oss@gravitext.com>2017-10-11 14:04:22 -0700
committerDavid Kellum <dek-oss@gravitext.com>2017-10-14 06:37:39 -0700
commita0c1d73418254ba0659ff7c58da34348345fc980 (patch)
tree99d84b58bd4cf7beb1452f5601101a931928a531 /lib/bundler/friendly_errors.rb
parentfea177f61df71121c6f9422a74b093e42c504388 (diff)
downloadbundler-a0c1d73418254ba0659ff7c58da34348345fc980.tar.gz
Avoid rescue of SignalException in kernel_load and with_friendly_errors
This allows SignalException to be handled gracefully by the ruby interpreter. (rebased on to master with CI Fix, 6084) github: fixes #6090
Diffstat (limited to 'lib/bundler/friendly_errors.rb')
-rw-r--r--lib/bundler/friendly_errors.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/friendly_errors.rb b/lib/bundler/friendly_errors.rb
index 51dd60c931..f624185773 100644
--- a/lib/bundler/friendly_errors.rb
+++ b/lib/bundler/friendly_errors.rb
@@ -120,6 +120,8 @@ module Bundler
def self.with_friendly_errors
yield
+ rescue SignalException
+ raise
rescue Exception => e
FriendlyErrors.log_error(e)
exit FriendlyErrors.exit_status(e)