Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
enhancing error message with an actual instruction on how to fix the …
Browse files Browse the repository at this point in the history
…missing ssl problem when running in prod mode and secured enabled
  • Loading branch information
lirantal committed Jul 24, 2015
1 parent 29d264d commit 315187e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
Expand Down

0 comments on commit 315187e

Please sign in to comment.