Skip to content

Commit a507ece

Browse files
committed
fail when a nonexistent config file is specified (#425)
1 parent c16f6dc commit a507ece

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jsdoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function main() {
170170
env.opts = jsdoc.opts.args.parse(env.args);
171171

172172
confPath = env.opts.configure || path.join(__dirname, 'conf.json');
173-
if ( !fs.statSync(confPath).isFile() ) {
173+
if ( !fs.statSync(confPath).isFile() && !env.opts.configure ) {
174174
confPath = path.join(__dirname, 'conf.json.EXAMPLE');
175175
}
176176

0 commit comments

Comments
 (0)