Use #error instead of #warn when telling the user not to use a custom data source
This commit is contained in:
parent
2f99e1d5c1
commit
af61451f87
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue