mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: throw an exception when UpdateRdapServers fail
This commit is contained in:
@@ -22,7 +22,6 @@ use Symfony\Component\Serializer\Attribute\Groups;
|
|||||||
new Get(
|
new Get(
|
||||||
uriTemplate: '/me',
|
uriTemplate: '/me',
|
||||||
controller: MeController::class,
|
controller: MeController::class,
|
||||||
paginationEnabled: false,
|
|
||||||
normalizationContext: ["groups" => "user:list"],
|
normalizationContext: ["groups" => "user:list"],
|
||||||
read: false
|
read: false
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ final readonly class UpdateRdapServersHandler
|
|||||||
} catch (Throwable $throwable) {
|
} catch (Throwable $throwable) {
|
||||||
$throws[] = $throwable;
|
$throws[] = $throwable;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->RDAPService->updateGTldListICANN();
|
$this->RDAPService->updateGTldListICANN();
|
||||||
} catch (Throwable $throwable) {
|
} catch (Throwable $throwable) {
|
||||||
@@ -47,6 +46,6 @@ final readonly class UpdateRdapServersHandler
|
|||||||
} catch (Throwable $throwable) {
|
} catch (Throwable $throwable) {
|
||||||
$throws[] = $throwable;
|
$throws[] = $throwable;
|
||||||
}
|
}
|
||||||
if (!empty($throwable)) throw $throws[0];
|
if (!empty($throws)) throw $throws[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user