diff options
author | Pieter Joost van de Sande <pj@born2code.net> | 2013-05-19 19:35:08 +0200 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2013-05-22 14:45:02 -0700 |
commit | 0dc8b9852b25a0d93596a5a6e787592ad4ba0aae (patch) | |
tree | b46c862b0d1f00bc886ff4f1170740603740ad69 /bin | |
parent | 19efe8a2f01ac54fa7c66a56dd36a2a93931c555 (diff) | |
download | bundler-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-x | bin/bundle | 7 |
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 +} |