Call ruby's 'abort' if the site is unhealthy

This commit is contained in:
Parker Moore 2013-08-08 18:33:55 +02:00
parent 318a379747
commit 7d26be5102
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@ module Jekyll
site = Jekyll::Site.new(options)
site.read
unless unhealthy(site)
if unhealthy(site)
abort
else
Jekyll.logger.info "Your test results", "are in. Everything looks fine."
end
end