Skip to content

Commit 1a61975

Browse files
committed
Detect svn errors
1 parent f99ff1c commit 1a61975

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Service/UpdaterWorker.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,9 @@ public function process(Job $job, SignalHandler $signal): array
312312
} elseif ($e instanceof \RuntimeException && Preg::isMatch('{Driver could not be established for package}i', $e->getMessage())) {
313313
// no driver found as it is a custom hosted git most likely on a server that is now unreachable or similar
314314
$found404 = true;
315+
} elseif ($e instanceof \RuntimeException && str_contains($e->getMessage(), 'svn: E160013:')) {
316+
// svn failed with a 404
317+
$found404 = true;
315318
} elseif ($e instanceof \RuntimeException && (
316319
Preg::isMatch('{fatal: could not read Username for \'[^\']+\': No such device or address\n}i', $e->getMessage())
317320
|| Preg::isMatch('{fatal: unable to access \'[^\']+\': Could not resolve host: }i', $e->getMessage())
@@ -321,6 +324,7 @@ public function process(Job $job, SignalHandler $signal): array
321324
|| Preg::isMatch('{Failed to connect to [\w.-]+ port \d+: No route to host}i', $e->getMessage())
322325
|| Preg::isMatch('{SSL: certificate subject name \([\w.-]+\) does not match target host name \'[\w.-]+\'}i', $e->getMessage())
323326
|| Preg::isMatch('{gnutls_handshake\(\) failed: The server name sent was not recognized}i', $e->getMessage())
327+
|| Preg::isMatch('{svn: E170013: Unable to connect to a repository at URL}', $e->getMessage())
324328
)) {
325329
// unreachable host, skip for a week as this may be a temporary failure
326330
$found404 = new \DateTime('+7 days');

0 commit comments

Comments
 (0)