From 15ccf87c04a48bca5a2202cdf33174a578d7dd4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Bitard?= Date: Wed, 17 May 2023 10:48:35 +0200 Subject: [PATCH] rethrow error when script failed --- lib/commands/run-script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/commands/run-script.js b/lib/commands/run-script.js index e1bce0e52a513..dd2ed2bdf66a3 100644 --- a/lib/commands/run-script.js +++ b/lib/commands/run-script.js @@ -213,6 +213,7 @@ class RunScript extends BaseCommand { // in some workspaces since other scripts might have succeeded if (!scriptMissing) { process.exitCode = 1 + throw err } return scriptMissing