From fddfb2a220d07628c3131de8e15d01ee56ef5ddf Mon Sep 17 00:00:00 2001 From: Mark Stosberg Date: Fri, 4 Sep 2015 10:46:26 -0400 Subject: [PATCH] Update warning about missing configuration files to mention how to disable the warning #245 --- History.md | 5 +++++ lib/config.js | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/History.md b/History.md index 4b366792..06127825 100644 --- a/History.md +++ b/History.md @@ -1,3 +1,8 @@ +NEXT / YYYY-MM-DD +================== + + * Update warning about missing configuration files to mention how to disable the warning #245 @markstos + 1.16.0 / 2015-09-03 =================== diff --git a/lib/config.js b/lib/config.js index d62e97ba..1b8e4ebd 100644 --- a/lib/config.js +++ b/lib/config.js @@ -1662,7 +1662,6 @@ var config = module.exports = new Config(); // Produce warnings if the configuration is empty var showWarnings = !(util.initParam('SUPPRESS_NO_CONFIG_WARNING')); if (showWarnings && Object.keys(config).length === 0) { - console.error('WARNING: No configurations found in configuration directory:'); - console.error('WARNING: ' + CONFIG_DIR); - console.error('WARNING: See https://www.npmjs.org/package/config for more information.'); + console.error('WARNING: No configurations found in configuration directory:' +CONFIG_DIR); + console.error('WARNING: To disable this warning set SUPRESS_NO_CONFIG_WARNING in the environment.'); }