Use `raise` instead of logging & aborting

This commit is contained in:
Parker Moore 2014-06-08 19:33:45 -04:00
parent ccee1b6a55
commit 50b04cdf92
1 changed files with 2 additions and 3 deletions

View File

@ -207,9 +207,8 @@ module Jekyll
when nils == "last" when nils == "last"
order = + 1 order = + 1
else else
Jekyll.logger.error "Invalid nils order:", raise ArgumentError.new("Invalid nils order: " +
"'#{nils}' is not a valid nils order. It must be 'first' or 'last'." "'#{nils}' is not a valid nils order. It must be 'first' or 'last'.")
exit(1)
end end
input.sort { |apple, orange| input.sort { |apple, orange|