From a507eced37137ee246fcea766121e6963c869eb8 Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Sun, 23 Jun 2013 15:21:19 -0700 Subject: [PATCH] fail when a nonexistent config file is specified (#425) --- jsdoc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsdoc.js b/jsdoc.js index 405523e1..b1f27885 100644 --- a/jsdoc.js +++ b/jsdoc.js @@ -170,7 +170,7 @@ function main() { env.opts = jsdoc.opts.args.parse(env.args); confPath = env.opts.configure || path.join(__dirname, 'conf.json'); - if ( !fs.statSync(confPath).isFile() ) { + if ( !fs.statSync(confPath).isFile() && !env.opts.configure ) { confPath = path.join(__dirname, 'conf.json.EXAMPLE'); }