mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
fail when a nonexistent config file is specified (#425)
This commit is contained in:
parent
c16f6dc0ef
commit
a507eced37
2
jsdoc.js
2
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');
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user