mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
prevent double logging
This commit is contained in:
parent
900f9f1216
commit
ac11bb6e53
8
cli.js
8
cli.js
@ -103,7 +103,7 @@ cli.configureLogger = function() {
|
||||
}
|
||||
|
||||
function fatalError() {
|
||||
cli.exit(1, fatalErrorMessage);
|
||||
cli.exit(1);
|
||||
}
|
||||
|
||||
if (env.opts.debug) {
|
||||
@ -379,11 +379,7 @@ cli.generateDocs = function() {
|
||||
};
|
||||
|
||||
// TODO: docs
|
||||
cli.exit = function(exitCode, errorMessage) {
|
||||
if (errorMessage) {
|
||||
logger.fatal(errorMessage);
|
||||
}
|
||||
|
||||
cli.exit = function(exitCode) {
|
||||
process.exit(exitCode || 0);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user