We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
process.stderr.setEncoding
1 parent 28308c4 commit 486779eCopy full SHA for 486779e
src/box-command.js
@@ -1517,7 +1517,6 @@ class BoxCommand extends Command {
1517
// Write the error message but let the process exit gracefully with error code so stderr gets written out
1518
// @NOTE: Exiting the process in the callback enables tests to mock out stderr and run to completion!
1519
/* eslint-disable no-process-exit,unicorn/no-process-exit */
1520
- process.stderr.setEncoding('utf8');
1521
process.stderr.write(errorMsg, () => {
1522
process.exitCode = 2;
1523
});
0 commit comments