Revert "Remove unnecessary exception message (avoid log flooding)"
This reverts commit 8c718515
This commit is contained in:
parent
16f5965fd4
commit
36ba6b9f2d
1 changed files with 2 additions and 2 deletions
|
@ -215,9 +215,9 @@ class HTTPRequest implements IHTTPRequest
|
||||||
} catch (TransferException $exception) {
|
} catch (TransferException $exception) {
|
||||||
if ($exception instanceof RequestException &&
|
if ($exception instanceof RequestException &&
|
||||||
$exception->hasResponse()) {
|
$exception->hasResponse()) {
|
||||||
return new GuzzleResponse($exception->getResponse(), $url, $exception->getCode(), '');
|
return new GuzzleResponse($exception->getResponse(), $url, $exception->getCode(), $exception->getMessage());
|
||||||
} else {
|
} else {
|
||||||
return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), '');
|
return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), $exception->getMessage());
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
$this->profiler->saveTimestamp($stamp1, 'network');
|
$this->profiler->saveTimestamp($stamp1, 'network');
|
||||||
|
|
Loading…
Reference in a new issue