Remove unnecessary exception message (avoid log flooding)
This commit is contained in:
parent
1995feff61
commit
50e2478189
|
@ -233,9 +233,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->stopRecording();
|
||||
|
|
Loading…
Reference in New Issue
Block a user