Skip to content

Commit 664b44b

Browse files
Yubi LeeDABH
authored andcommitted
fix typo related to exitOnError (#1559)
1 parent abac7e2 commit 664b44b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lib/winston/exception-handler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ module.exports = class ExceptionHandler {
174174

175175
if (!handlers.length && doExit) {
176176
// eslint-disable-next-line no-console
177-
console.warn('winston: exitOnError cannot be false with no exception handlers.');
177+
console.warn('winston: exitOnError cannot be true with no exception handlers.');
178178
// eslint-disable-next-line no-console
179-
console.warn('winston: exiting process.');
179+
console.warn('winston: not exiting process.');
180180
doExit = false;
181181
}
182182

lib/winston/rejection-handler.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,9 @@ module.exports = class RejectionHandler {
176176

177177
if (!handlers.length && doExit) {
178178
// eslint-disable-next-line no-console
179-
console.warn(
180-
'winston: exitOnError cannot be false with no rejection handlers.'
181-
);
179+
console.warn('winston: exitOnError cannot be true with no rejection handlers.');
182180
// eslint-disable-next-line no-console
183-
console.warn('winston: exiting process.');
181+
console.warn('winston: not exiting process.');
184182
doExit = false;
185183
}
186184

0 commit comments

Comments
 (0)