From ecab2eb473bc5504b417557c88deb2fe91c6cffe Mon Sep 17 00:00:00 2001 From: akira yamada Date: Tue, 17 Dec 2013 10:57:12 +0900 Subject: [PATCH] made error description more helpful --- lib/jekyll/tags/post_url.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/tags/post_url.rb b/lib/jekyll/tags/post_url.rb index 52c5c2ed..af366702 100644 --- a/lib/jekyll/tags/post_url.rb +++ b/lib/jekyll/tags/post_url.rb @@ -7,7 +7,7 @@ module Jekyll def initialize(name) all, path, date, slug = *name.sub(/^\//, "").match(MATCHER) - raise ArgumentError.new("invalid post name") unless all + raise ArgumentError.new("'#{name}' does not contain valid date and/or title") unless all @slug = path ? path + slug : slug @date = Time.parse(date) end