From 96de012f831141c4866ccfe95b98c8cf4256e97f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Harasimowicz?= Date: Mon, 22 Aug 2022 10:01:14 +0200 Subject: [PATCH] Propagate error when merging config --- src/MergePlugin.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MergePlugin.php b/src/MergePlugin.php index e053b2d..862650f 100644 --- a/src/MergePlugin.php +++ b/src/MergePlugin.php @@ -388,6 +388,9 @@ public function onPostInstallOrUpdate(ScriptEvent $event) '' ); file_put_contents($lock, $lockBackup); + // propagate error to the parent process to allow proper status code being returned + // this is important for any CI/CD tools to properly recognize if an error occurred in this phase + exit($status); } } // @codeCoverageIgnoreEnd