Change error handling in 'post_url' tag: raise exception
This commit is contained in:
parent
39c0d125bb
commit
72c3bba56a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue