Ensure the algolia root node is there as well while checking the

credentials
This commit is contained in:
Sylvain UTARD 2015-07-07 15:32:48 +02:00
parent 0c748984f7
commit 0d53267d81

View File

@ -96,7 +96,7 @@ class AlgoliaSearchJekyllPush < Jekyll::Command
exit 1
end
unless @config['algolia']['application_id']
unless @config['algolia'] && @config['algolia']['application_id']
Jekyll.logger.error 'Algolia Error: No application ID defined'
Jekyll.logger.warn ' Please set your application id in the '\
'_config.yml file, like so:'