diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-10-24 13:57:52 -0700 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2012-11-03 17:33:16 -0600 |
commit | 7ac9df0a4dcff52971f5aa4c62387286e4e62410 (patch) | |
tree | 1c003ca166aa4ae6af5dd9d982ba86feeab80be4 | |
parent | 01aade069b0128aa776bb8375b486b83974c40e5 (diff) | |
download | bundler-7ac9df0a4dcff52971f5aa4c62387286e4e62410.tar.gz |
we should be rescuing from Psych::SyntaxError, not SyntaxError
-rw-r--r-- | lib/bundler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 2de1683c16..778bd68ed3 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -293,7 +293,7 @@ module Bundler begin Gem::Specification.from_yaml(contents) # Raises ArgumentError if the file is not valid YAML - rescue ArgumentError, SyntaxError, Gem::EndOfYAMLException, Gem::Exception + rescue ArgumentError, Psych::SyntaxError, Gem::EndOfYAMLException, Gem::Exception begin eval(contents, TOPLEVEL_BINDING, path.expand_path.to_s) rescue LoadError, SyntaxError => e |