mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-07 17:54:01 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user