mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
chore: error message with contact roid
This commit is contained in:
parent
e6a1a275b6
commit
eabf43ae12
@ -51,8 +51,10 @@ class EppClientProvider extends AbstractProvider implements CheckDomainProviderI
|
||||
|
||||
/** @var eppCheckContactResponse $resp */
|
||||
$resp = $this->eppClient->request(new eppCheckContactRequest($contacts));
|
||||
if (in_array(true, $resp->getCheckedContacts())) {
|
||||
throw new BadRequestHttpException('At least one of the contacts entered cannot be used because they are indicated as available.');
|
||||
foreach ($resp->getCheckedContacts() as $contact => $available) {
|
||||
if ($available) {
|
||||
throw new BadRequestHttpException("At least one of the entered contacts cannot be used because it is indicated as available ($contact).");
|
||||
}
|
||||
}
|
||||
|
||||
$this->eppClient->logout();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user