Exception history

This commit is contained in:
Juan Pablo Vial
2025-10-03 11:48:11 -03:00
parent fa2b9d130b
commit 032d00fbb6

View File

@ -48,8 +48,8 @@ class Ine implements Provider
]); ]);
try { try {
$response = $this->client->get($request_uri); $response = $this->client->get($request_uri);
} catch (GuzzleException) { } catch (GuzzleException $exception) {
throw new EmptyResponse($request_uri); throw new EmptyResponse($request_uri, $exception);
} }
$body = $response->getBody(); $body = $response->getBody();
$json = json_decode($body->getContents()); $json = json_decode($body->getContents());