mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: Exception in dry-run with Gandi Provider
This commit is contained in:
@@ -82,7 +82,8 @@ readonly class GandiConnector implements ConnectorInterface
|
||||
|
||||
$res = $this->client->request('POST', '/domain/domains', $httpOptions->toArray());
|
||||
|
||||
if (Response::HTTP_ACCEPTED !== $res->getStatusCode()) {
|
||||
if ((!$dryRun && Response::HTTP_ACCEPTED !== $res->getStatusCode())
|
||||
|| ($dryRun && Response::HTTP_OK !== $res->getStatusCode())) {
|
||||
throw new \Exception($res->toArray()['message']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user