From 9d259fe31562c5fb22a5ae1bbe3a60ad1cbc0743 Mon Sep 17 00:00:00 2001 From: akira yamada Date: Sun, 15 Dec 2013 17:18:11 +0900 Subject: [PATCH] added error description for invalid post name --- 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 3076b75e..52c5c2ed 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 unless all + raise ArgumentError.new("invalid post name") unless all @slug = path ? path + slug : slug @date = Time.parse(date) end