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')) {