We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d91b0f9 commit 0aba249Copy full SHA for 0aba249
1 file changed
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php
@@ -3,6 +3,7 @@
3
namespace wcf\system\package;
4
5
use GuzzleHttp\Exception\ClientException;
6
+use GuzzleHttp\Exception\ServerException;
7
use GuzzleHttp\Psr7\Request;
8
use GuzzleHttp\RequestOptions;
9
use Psr\Http\Client\ClientExceptionInterface;
@@ -196,6 +197,10 @@ private function getPackageUpdateXML(PackageUpdateServer $updateServer)
196
197
$e->getResponse()->getBody(),
198
$updateServer,
199
);
200
+ } catch (ServerException $e) {
201
+ throw new SystemException(
202
+ WCF::getLanguage()->get('wcf.acp.package.update.error.listNotFound') . ' (' . $e->getResponse()->getStatusCode() . ')'
203
+ );
204
}
205
206
if ($response->getStatusCode() !== 200 && $response->getStatusCode() !== 304) {
0 commit comments