diff options
Diffstat (limited to 'lib/bundler/friendly_errors.rb')
-rw-r--r-- | lib/bundler/friendly_errors.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/friendly_errors.rb b/lib/bundler/friendly_errors.rb index e60f73f7df..f6f8fd5623 100644 --- a/lib/bundler/friendly_errors.rb +++ b/lib/bundler/friendly_errors.rb @@ -5,6 +5,10 @@ require "bundler/vendored_thor" module Bundler def self.with_friendly_errors yield + rescue YAMLSyntaxError => e + Bundler.ui.error e.message + Bundler.ui.trace e.orig_exception + exit e.status_code rescue Bundler::Dsl::DSLError => e Bundler.ui.error e.message exit e.status_code |