Revert "Remove unnecessary exception message (avoid log flooding)"

This reverts commit 8c718515
This commit is contained in:
Philipp Holzer 2020-10-11 23:25:19 +02:00
parent 16f5965fd4
commit 36ba6b9f2d
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD

View file

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