summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2011-02-17 15:32:34 -0800
committerAndre Arko <andre@arko.net>2011-03-02 12:45:11 -0800
commit7dea34b00a65ae115ab26e015d60f0b814cd7179 (patch)
tree88c9e7d58624c11c587dad4feb578a121030efc7 /bin
parent95f9b5f40134f0224e4e2df6ada1d3fa48ef3500 (diff)
downloadbundler-7dea34b00a65ae115ab26e015d60f0b814cd7179.tar.gz
Ask users who witness uncaught exceptions to report to github issues
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bundle5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/bundle b/bin/bundle
index 778c79c36c..c1c9cdef1e 100755
--- a/bin/bundle
+++ b/bin/bundle
@@ -19,4 +19,9 @@ rescue Interrupt => e
Bundler.ui.error "\nQuitting..."
Bundler.ui.debug e.backtrace.join("\n")
exit 1
+rescue Exception => e
+ 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!"
+ raise e
end