summaryrefslogtreecommitdiff
path: root/lib/bundler/psyched_yaml.rb
diff options
context:
space:
mode:
authorTerence Lee <hone02@gmail.com>2012-11-14 04:48:20 +0200
committerTerence Lee <hone02@gmail.com>2012-11-14 04:50:12 +0200
commit71313f1ab45f12ad482df4db8d1cf3892978442d (patch)
treed80109a128497bd0d6c2deb3124ba7a25f337f7a /lib/bundler/psyched_yaml.rb
parentda996eb7edeb3f4d5fdfd590a2b62489d80baf3b (diff)
downloadbundler-71313f1ab45f12ad482df4db8d1cf3892978442d.tar.gz
clean up rescue clause, and move comment to appropriate area
Diffstat (limited to 'lib/bundler/psyched_yaml.rb')
-rw-r--r--lib/bundler/psyched_yaml.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bundler/psyched_yaml.rb b/lib/bundler/psyched_yaml.rb
index 6a75eecbe1..9501d242df 100644
--- a/lib/bundler/psyched_yaml.rb
+++ b/lib/bundler/psyched_yaml.rb
@@ -14,6 +14,9 @@ end
# Psych might NOT EXIST AT ALL
require 'yaml'
+# if the file is not valid YAML:
+# * Syck raises ArgumentError
+# * Psych raises Psych::SyntaxError
begin
YamlSyntaxError = Psych::SyntaxError
rescue NameError