]> git.mxchange.org Git - friendica.git/commitdiff
Remove unnecessary exception message (avoid log flooding)
authorPhilipp <admin@philipp.info>
Fri, 20 Aug 2021 17:48:21 +0000 (19:48 +0200)
committerPhilipp <admin@philipp.info>
Fri, 20 Aug 2021 17:58:42 +0000 (19:58 +0200)
src/Network/HTTPRequest.php

index d47e969d510d39403cdf15fc388be0ba74be7202..e68c0a8f4bd16e6ca96b6ebe3584c77daefc833c 100644 (file)
@@ -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();