summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-10-24 13:57:52 -0700
committerTerence Lee <hone02@gmail.com>2012-11-03 17:33:16 -0600
commit7ac9df0a4dcff52971f5aa4c62387286e4e62410 (patch)
tree1c003ca166aa4ae6af5dd9d982ba86feeab80be4
parent01aade069b0128aa776bb8375b486b83974c40e5 (diff)
downloadbundler-7ac9df0a4dcff52971f5aa4c62387286e4e62410.tar.gz
we should be rescuing from Psych::SyntaxError, not SyntaxError
-rw-r--r--lib/bundler.rb2
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