Merge pull request #1847 from schneems/schneems/better-bat-time-error

This commit is contained in:
Parker Moore 2013-12-24 11:05:34 -08:00
commit 9d5785cead
1 changed files with 4 additions and 1 deletions

View File

@ -160,7 +160,10 @@ module Jekyll
self.slug = slug
self.ext = ext
rescue ArgumentError
raise FatalException.new("Post #{name} does not have a valid date.")
path = File.join(@dir || "", name)
msg = "Post '#{path}' does not have a valid date.\n"
msg << "Fix the date, or exclude the file or directory from being processed"
raise FatalException.new(msg)
end
# The generated directory into which the post will be placed