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

View File

@@ -188,8 +188,8 @@ module Jekyll
#
# Returns nothing
def read_data(dir)
unless dir.eql?("_data")
Jekyll.logger.warn "Error:", "Data source directories other than '_data' have been removed.\n" +
unless dir.to_s.eql?("_data")
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`."
end