mirror of
https://github.com/jekyll/jekyll.git
synced 2026-02-07 21:25:21 -05:00
added error description for invalid post name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user