Permalink
Browse files

Give name of file that generated YAML exception message

It's not much good saying "hey, there was a problem" if you don't know where
the problem *is*.  Hunting through several hundred YAML files is no fun.
  • Loading branch information...
1 parent e679729 commit eebeaf5dfb16c998e159dfc06d0266340d27f168 @mpalmer mpalmer committed Jul 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/jekyll/convertible.rb
@@ -32,7 +32,7 @@ def read_yaml(base, name)
begin
self.data = YAML.load($1)
rescue => e
- puts "YAML Exception: #{e.message}"
+ puts "YAML Exception reading #{name}: #{e.message}"
end
end

0 comments on commit eebeaf5

Please sign in to comment.