From 35c2799eed429eb17048cce3cb84dc537198211f Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 20 May 2024 17:51:02 +0200 Subject: [PATCH] Fix error matching --- src/Service/UpdaterWorker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/UpdaterWorker.php b/src/Service/UpdaterWorker.php index 8313fdea4..7e1453e45 100644 --- a/src/Service/UpdaterWorker.php +++ b/src/Service/UpdaterWorker.php @@ -273,7 +273,7 @@ public function process(Job $job, SignalHandler $signal): array } elseif ($e instanceof \RuntimeException && strpos($e->getMessage(), 'git@gitlab.com') && strpos($e->getMessage(), 'Please make sure you have the correct access rights')) { // git clone says we have no right on gitlab for 404s $found404 = true; - } elseif ($e instanceof \RuntimeException && strpos($e->getMessage(), 'git@gitlab.com') && strpos($e->getMessage(), 'You are not allowed to download code from this project')) { + } elseif ($e instanceof \RuntimeException && strpos($e->getMessage(), '@gitlab.com/') && strpos($e->getMessage(), 'You are not allowed to download code from this project')) { // project is gone on gitlab somehow $found404 = true; } elseif ($e instanceof TransportException && $e->getStatusCode() === 404 && strpos($e->getMessage(), 'https://gitlab.com/api/v4/projects/') && strpos($e->getMessage(), '404 Project Not Found')) {