Skip to content

Commit

Permalink
Give name of file that generated YAML exception message
Browse files Browse the repository at this point in the history
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
mpalmer committed Jul 2, 2011
1 parent e679729 commit eebeaf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jekyll/convertible.rb
Expand Up @@ -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

Expand Down

0 comments on commit eebeaf5

Please sign in to comment.