diff --git a/lib/index.js b/lib/index.js index c90a85c..c328f0b 100644 --- a/lib/index.js +++ b/lib/index.js @@ -39,10 +39,14 @@ function loadConfFiles(files) { try { contents = require(path.join(confDir, file + '.json')); } catch (e) { + if (e.code !== "MODULE_NOT_FOUND" ) { + console.warn("Warning: "); + } try { contents = require(path.join(confDir, file + '.js')); } catch (e2) { - contents = { }; + console.warn("Warning: ", e2); + contents = { }; } } return contents;