Merge branch 'master' of https://github.com/Neil-Smithline/jekyll into Neil-Smithline-master

This commit is contained in:
Tom Preston-Werner 2012-12-15 16:42:26 -08:00
commit 583f9e0019
1 changed files with 5 additions and 1 deletions

View File

@ -38,7 +38,11 @@ module Jekyll
self.categories = dir.split('/').reject { |x| x.empty? }
self.process(name)
self.read_yaml(@base, name)
begin
self.read_yaml(@base, name)
rescue Exception => msg
raise FatalException.new("#{msg} in #{@base}/#{name}")
end
#If we've added a date and time to the yaml, use that instead of the filename date
#Means we'll sort correctly.