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.
This commit is contained in:
Matt Palmer 2011-07-02 10:35:41 +10:00
parent e679729ac7
commit eebeaf5dfb
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ module Jekyll
begin
self.data = YAML.load($1)
rescue => e
puts "YAML Exception: #{e.message}"
puts "YAML Exception reading #{name}: #{e.message}"
end
end