From bf864c4be0f38672dfca1275e88bfc8a9568a187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bitard=20Micha=C3=ABl?= Date: Wed, 17 May 2023 17:04:16 +0200 Subject: [PATCH] fix: exit code on workspace properly propagated in node v20 --- lib/utils/exit-handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/exit-handler.js b/lib/utils/exit-handler.js index b5d6cd030fb5c..25cecd170a584 100644 --- a/lib/utils/exit-handler.js +++ b/lib/utils/exit-handler.js @@ -131,8 +131,8 @@ const exitHandler = err => { log.level = level } - let exitCode - let noLogMessage + let exitCode = process.exitCode || 0 + let noLogMessage = exitCode !== 0 let jsonError if (err) {