summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPieter Joost van de Sande <pj@born2code.net>2013-05-19 19:35:08 +0200
committerAndre Arko <andre@arko.net>2013-05-22 14:45:02 -0700
commit0dc8b9852b25a0d93596a5a6e787592ad4ba0aae (patch)
treeb46c862b0d1f00bc886ff4f1170740603740ad69 /bin
parent19efe8a2f01ac54fa7c66a56dd36a2a93931c555 (diff)
downloadbundler-0dc8b9852b25a0d93596a5a6e787592ad4ba0aae.tar.gz
Set THOR_DEBUG flag
Enable debug flag so errors from Thor are getting raised. This enables us to rescue them, inform the user and exit with a failing exit code.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bundle7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/bundle b/bin/bundle
index d2c62045bc..fc2aca105a 100755
--- a/bin/bundle
+++ b/bin/bundle
@@ -17,4 +17,9 @@ end
require 'bundler/cli'
require 'bundler/friendly_errors'
-Bundler.with_friendly_errors { Bundler::CLI.start }
+Bundler.with_friendly_errors {
+ # Set debug flag so we can rescue Thor::error's
+ # and set the correct exit code.
+ ENV["THOR_DEBUG"] = "1"
+ Bundler::CLI.start
+}