lib/bundler/friendly_errors.rb in bundler-1.11.0 vs lib/bundler/friendly_errors.rb in bundler-1.11.1
- old
+ new
@@ -3,10 +3,10 @@
require "bundler/vendored_thor"
module Bundler
def self.with_friendly_errors
yield
- rescue YAMLSyntaxError => e
+ rescue Bundler::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