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:
parent
e679729ac7
commit
eebeaf5dfb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue