mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-30 09:18:11 -05:00
Use #error instead of #warn when telling the user not to use a custom data source
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user