enhancing error message with an actual instruction on how to fix the missing ssl problem when running in prod mode and secured enabled

This commit is contained in:
Liran Tal
2015-07-24 10:03:14 +03:00
parent 29d264dff7
commit 315187e021

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