added error description for invalid post name

This commit is contained in:
akira yamada 2013-12-15 17:18:11 +09:00
parent a5545d5bad
commit 9d259fe315
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ module Jekyll
def initialize(name)
all, path, date, slug = *name.sub(/^\//, "").match(MATCHER)
raise ArgumentError unless all
raise ArgumentError.new("invalid post name") unless all
@slug = path ? path + slug : slug
@date = Time.parse(date)
end