diff options
| author | Andre Arko <andre@arko.net> | 2015-12-13 20:05:11 +0800 |
|---|---|---|
| committer | Andre Arko <andre@arko.net> | 2015-12-13 20:05:11 +0800 |
| commit | 0113309648da399e59f9ea67a0500af49818ed7b (patch) | |
| tree | 061b7a74af49a0921785e852215ab4cb4642dedb /lib/bundler/friendly_errors.rb | |
| parent | 7e466f3d31cac3b62b84d57c1eebb2dcde82a2c7 (diff) | |
| download | bundler-0113309648da399e59f9ea67a0500af49818ed7b.tar.gz | |
YamlLibrarySyntaxError != YamlsyntayxError
It’s really confusing to have two constants that only differ by
capitalization. One is the library error, one is Bundler’s own, so let’s
name them that way.
Diffstat (limited to 'lib/bundler/friendly_errors.rb')
| -rw-r--r-- | lib/bundler/friendly_errors.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/friendly_errors.rb b/lib/bundler/friendly_errors.rb index eb15f48071..5721807a90 100644 --- a/lib/bundler/friendly_errors.rb +++ b/lib/bundler/friendly_errors.rb @@ -5,7 +5,7 @@ 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 |
