summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2011-11-30 12:58:55 -1000
committerAndre Arko <andre@arko.net>2011-11-30 13:00:01 -1000
commitaf400195ddd6866b6188ed29a87efc105522c740 (patch)
tree810ca38c129a8da297574fe797c1f8e644032f62 /bin
parent95dc86b106143a7df8c23ee7fc6901ab7e57077d (diff)
downloadbundler-af400195ddd6866b6188ed29a87efc105522c740.tar.gz
stop asking for tickets on non-Bundler errors
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bundle4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/bundle b/bin/bundle
index 5e9dc164bf..39bbaf7640 100755
--- a/bin/bundle
+++ b/bin/bundle
@@ -21,7 +21,11 @@ rescue Interrupt => e
exit 1
rescue SystemExit => e
exit e.status
+rescue LoadError, Gem::InstallError, Gem::Installer::ExtensionBuildError => e
+ # known errors, something went wrong outside Bundler
+ raise e
rescue Exception => e
+ # unknown errors, hopefully we can fix them
Bundler.ui.error "Unfortunately, a fatal error has occurred. " +
"Please report this error to the Bundler issue tracker at " +
"https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!"