diff --git a/config/config.js b/config/config.js index 973c502de9..6a0dacdaed 100644 --- a/config/config.js +++ b/config/config.js @@ -79,8 +79,8 @@ var validateSecureMode = function(config) { var certificate = fs.existsSync('./config/sslcerts/cert.pem'); if (!privateKey || !certificate) { - chalk.red(console.log('+ Error: Certificate file or key file is missing, falling back to non-SSL mode')); - chalk.red(console.log(' To create them, simply run the following from your shell: sh ./scripts/generate-ssl-certs.sh')); + console.log(chalk.red('+ Error: Certificate file or key file is missing, falling back to non-SSL mode')); + console.log(chalk.red(' To create them, simply run the following from your shell: sh ./scripts/generate-ssl-certs.sh')); console.log(); config.secure = false; }