Skip to content

Commit 7687b0f

Browse files
committed
Add new error to detect server reachability issues
1 parent b8e03a5 commit 7687b0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Service/UpdaterWorker.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ public function process(Job $job, SignalHandler $signal): array
337337
$found404 = true;
338338
} elseif ($e instanceof \RuntimeException && (
339339
Preg::isMatch('{fatal: could not read Username for \'[^\']+\': No such device or address\n}i', $e->getMessage())
340+
|| Preg::isMatch('{fatal: could not read Username for \'[^\']+\': terminal prompts disabled}i', $e->getMessage())
340341
|| Preg::isMatch('{fatal: unable to access \'[^\']+\': Could not resolve host: }i', $e->getMessage())
341342
|| Preg::isMatch('{fatal: unable to access \'[^\']+\': The requested URL returned error: 503}i', $e->getMessage())
342343
|| Preg::isMatch('{fatal: unable to access \'[^\']+\': server certificate verification failed}i', $e->getMessage())

0 commit comments

Comments
 (0)