fix: http message error

This commit is contained in:
Maël Gangloff
2024-08-07 16:21:41 +02:00
parent 7902bfbe32
commit a0d2639311
2 changed files with 6 additions and 4 deletions

View File

@@ -79,7 +79,7 @@ readonly class GandiConnector implements ConnectorInterface
if ((!$dryRun && Response::HTTP_ACCEPTED !== $res->getStatusCode())
|| ($dryRun && Response::HTTP_OK !== $res->getStatusCode())) {
throw new \Exception($res->toArray()['message']);
throw new \HttpException($res->toArray()['message']);
}
}