Merge pull request #691 from lirantal/feature/missing_ssl_better_log

Enhancing SSL error message
This commit is contained in:
Liran Tal
2015-07-24 11:11:19 +03:00

View File

@@ -80,6 +80,8 @@ var validateSecureMode = function(config) {
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();
config.secure = false;
}
};