mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
Replace RuntimeException with DownloaderException for Go version retrieval failure
This commit is contained in:
parent
40e36982d3
commit
550f6cad60
@ -77,7 +77,7 @@ class go_xcaddy
|
||||
{
|
||||
[$version] = explode("\n", default_shell()->executeCurl('https://go.dev/VERSION?m=text') ?: '');
|
||||
if ($version === '') {
|
||||
throw new \RuntimeException('Failed to get latest Go version from https://go.dev/VERSION?m=text');
|
||||
throw new DownloaderException('Failed to get latest Go version from https://go.dev/VERSION?m=text');
|
||||
}
|
||||
return new CheckUpdateResult(
|
||||
old: $old_version,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user