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 {
|
||||
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]);
|
||||
return new CurlResult($url, '', ['http_code' => $argumentException->getCode()], $argumentException->getCode(), $argumentException->getMessage());
|
||||
} finally {
|
||||
|
|
Loading…
Reference in a new issue