Skip to content

Commit 37b7fc0

Browse files
committed
Merge branch '6.1' into 6.2
2 parents cf84ff0 + 0aba249 commit 37b7fc0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace wcf\system\package;
44

55
use GuzzleHttp\Exception\ClientException;
6+
use GuzzleHttp\Exception\ServerException;
67
use GuzzleHttp\Psr7\Request;
78
use GuzzleHttp\RequestOptions;
89
use Psr\Http\Client\ClientExceptionInterface;
@@ -221,6 +222,10 @@ private function fetchPackageUpdateXML(PackageUpdateServer $updateServer): void
221222
$e->getResponse()->getBody(),
222223
$updateServer,
223224
);
225+
} catch (ServerException $e) {
226+
throw new SystemException(
227+
WCF::getLanguage()->get('wcf.acp.package.update.error.listNotFound') . ' (' . $e->getResponse()->getStatusCode() . ')'
228+
);
224229
}
225230

226231
if ($response->getStatusCode() !== 200 && $response->getStatusCode() !== 304) {

0 commit comments

Comments
 (0)