Skip to content

Commit

Permalink
fix typo related to exitOnError (#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yubi Lee authored and DABH committed Jan 3, 2019
1 parent abac7e2 commit 664b44b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/winston/exception-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ module.exports = class ExceptionHandler {

if (!handlers.length && doExit) {
// eslint-disable-next-line no-console
console.warn('winston: exitOnError cannot be false with no exception handlers.');
console.warn('winston: exitOnError cannot be true with no exception handlers.');
// eslint-disable-next-line no-console
console.warn('winston: exiting process.');
console.warn('winston: not exiting process.');
doExit = false;
}

Expand Down
6 changes: 2 additions & 4 deletions lib/winston/rejection-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,9 @@ module.exports = class RejectionHandler {

if (!handlers.length && doExit) {
// eslint-disable-next-line no-console
console.warn(
'winston: exitOnError cannot be false with no rejection handlers.'
);
console.warn('winston: exitOnError cannot be true with no rejection handlers.');
// eslint-disable-next-line no-console
console.warn('winston: exiting process.');
console.warn('winston: not exiting process.');
doExit = false;
}

Expand Down

0 comments on commit 664b44b

Please sign in to comment.