Skip to content

Commit

Permalink
Fix error matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed May 20, 2024
1 parent e429879 commit 35c2799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/UpdaterWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 35c2799

Please sign in to comment.