Use #error instead of #warn when telling the user not to use a custom data source

This commit is contained in:
Parker Moore 2014-04-06 13:34:41 -04:00
parent 2f99e1d5c1
commit af61451f87
1 changed files with 2 additions and 2 deletions

View File

@ -188,8 +188,8 @@ module Jekyll
# #
# Returns nothing # Returns nothing
def read_data(dir) def read_data(dir)
unless dir.eql?("_data") unless dir.to_s.eql?("_data")
Jekyll.logger.warn "Error:", "Data source directories other than '_data' have been removed.\n" + Jekyll.logger.error "Error:", "Data source directories other than '_data' have been removed.\n" +
"Please move your YAML files to `_data` and remove the `data_source` key from your `_config.yml`." "Please move your YAML files to `_data` and remove the `data_source` key from your `_config.yml`."
end end