Skip to content

Commit

Permalink
Update warning about missing configuration files to mention how to di…
Browse files Browse the repository at this point in the history
…sable the warning #245
  • Loading branch information
markstos committed Sep 4, 2015
1 parent dbd7a09 commit fddfb2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions 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
===================

Expand Down
5 changes: 2 additions & 3 deletions lib/config.js
Expand Up @@ -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.');
}

0 comments on commit fddfb2a

Please sign in to comment.