Raise LoadError if the file doesn't exist but do not catch it. :)

This commit is contained in:
Parker Moore
2013-07-12 12:22:06 +02:00
parent a7efb86d5c
commit 253fc8c506
2 changed files with 11 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ module Jekyll
{}
else
Jekyll.logger.error "Fatal:", "The configuration file '#{file}' could not be found."
abort
raise LoadError
end
end
@@ -144,7 +144,7 @@ module Jekyll
new_config = read_config_file(config_file)
configuration = configuration.deep_merge(new_config)
end
rescue => err
rescue ArgumentError => err
Jekyll.logger.warn "WARNING:", "Error reading configuration. " +
"Using defaults (and options)."
$stderr.puts "#{err}"