This commit is contained in:
parent
d517fed12d
commit
58001c729f
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ class HTTPClient implements IHTTPClient
|
||||||
} else {
|
} else {
|
||||||
return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), '');
|
return new CurlResult($url, '', ['http_code' => $exception->getCode()], $exception->getCode(), '');
|
||||||
}
|
}
|
||||||
} catch (InvalidArgumentException $argumentException) {
|
} catch (InvalidArgumentException | \InvalidArgumentException $argumentException) {
|
||||||
$this->logger->info('Invalid Argument for HTTP call.', ['url' => $url, 'method' => $method, 'exception' => $argumentException]);
|
$this->logger->info('Invalid Argument for HTTP call.', ['url' => $url, 'method' => $method, 'exception' => $argumentException]);
|
||||||
return new CurlResult($url, '', ['http_code' => $argumentException->getCode()], $argumentException->getCode(), $argumentException->getMessage());
|
return new CurlResult($url, '', ['http_code' => $argumentException->getCode()], $argumentException->getCode(), $argumentException->getMessage());
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in a new issue