From af400195ddd6866b6188ed29a87efc105522c740 Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Wed, 30 Nov 2011 12:58:55 -1000 Subject: [PATCH] stop asking for tickets on non-Bundler errors --- bin/bundle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/bundle b/bin/bundle index 5e9dc164bfe..39bbaf76405 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!"