Remove unnecessary exception message (avoid log flooding)

This commit is contained in:
Philipp 2020-10-10 21:50:36 +02:00
parent b8314f0c30
commit 8c7185154d
No known key found for this signature in database
GPG Key ID: 9A28B7D4FF5667BD

View File

@ -205,9 +205,9 @@ class HTTPRequest implements IHTTPRequest
} catch (TransferException $exception) {
if ($exception instanceof RequestException &&
$exception->hasResponse()) {
return new GuzzleResponse($exception->getResponse(), $url, $exception->getCode(), $exception->getMessage());
return new GuzzleResponse($exception->getResponse(), $url, $exception->getCode(), '');
} else {
return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), $exception->getMessage());
return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), '');
}
} finally {
$this->profiler->saveTimestamp($stamp1, 'network');