From 315187e021a0ae4198fc4d2559dc1d0754f0c7c9 Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Fri, 24 Jul 2015 10:03:14 +0300 Subject: [PATCH] enhancing error message with an actual instruction on how to fix the missing ssl problem when running in prod mode and secured enabled --- config/config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/config.js b/config/config.js index 756c0888..973c502d 100644 --- a/config/config.js +++ b/config/config.js @@ -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; } };