Change error handling in 'post_url' tag: raise exception

This commit is contained in:
maul.esel 2013-09-07 20:11:00 +02:00
parent 39c0d125bb
commit 72c3bba56a
1 changed files with 4 additions and 2 deletions

View File

@ -50,9 +50,11 @@ module Jekyll
end
end
puts "ERROR: post_url: \"#{@orig_post}\" could not be found"
raise ArgumentError.new <<-eos
Could not find post "#{@orig_post}" in tag 'post_url'.
return "#"
Make sure the post exists and the name is correct.
eos
end
end
end