summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-06-08 00:31:35 -0700
committerAndre Arko <andre@arko.net>2015-06-08 00:31:35 -0700
commit00ca9ae0800b61316e973af46e03e8c7d3a0fd07 (patch)
treebe4e37410b4747531f01e1b4a96b7661ff79f707
parent2908f3c3f7d575614ed71f992bb082f10cbcc825 (diff)
downloadbundler-00ca9ae0800b61316e973af46e03e8c7d3a0fd07.tar.gz
Revert "Bundler.ui is now lazy-created"
The lazy-created UI is silent, and we need to be able to print for things like ambiguous command error messages. This reverts commit 849c649632b71111a06e71c0170ba966aca60d04.
-rw-r--r--lib/bundler/cli.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb
index 1c8d4993ab..cda22aaca3 100644
--- a/lib/bundler/cli.rb
+++ b/lib/bundler/cli.rb
@@ -6,6 +6,13 @@ module Bundler
include Thor::Actions
AUTO_INSTALL_CMDS = %w[show binstubs outdated exec open console licenses clean]
+ def self.start(*)
+ super
+ rescue Exception => e
+ Bundler.ui = UI::Shell.new
+ raise e
+ end
+
def initialize(*args)
super