From 9b2a15cd5b34e4cb620a0cd3bc592bc5e8f47f82 Mon Sep 17 00:00:00 2001 From: Koji Nakamaru Date: Wed, 19 Mar 2025 17:51:43 +0900 Subject: [PATCH] fix: remove the call to process.stderr.setEncoding (cf. #571). --- src/box-command.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/box-command.js b/src/box-command.js index 4b513224..9baffab2 100644 --- a/src/box-command.js +++ b/src/box-command.js @@ -1517,7 +1517,6 @@ class BoxCommand extends Command { // Write the error message but let the process exit gracefully with error code so stderr gets written out // @NOTE: Exiting the process in the callback enables tests to mock out stderr and run to completion! /* eslint-disable no-process-exit,unicorn/no-process-exit */ - process.stderr.setEncoding('utf8'); process.stderr.write(errorMsg, () => { process.exitCode = 2; });