Merge pull request #703 from lirantal/bugfix/config_chalk_console_log_order

fixing chalk and console usage for consistency reasons
This commit is contained in:
Liran Tal
2015-07-25 11:13:08 +03:00

View File

@@ -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;
}