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(
|
||||
uriTemplate: '/me',
|
||||
controller: MeController::class,
|
||||
paginationEnabled: false,
|
||||
normalizationContext: ["groups" => "user:list"],
|
||||
read: false
|
||||
)
|
||||
|
||||
@@ -36,7 +36,6 @@ final readonly class UpdateRdapServersHandler
|
||||
} catch (Throwable $throwable) {
|
||||
$throws[] = $throwable;
|
||||
}
|
||||
|
||||
try {
|
||||
$this->RDAPService->updateGTldListICANN();
|
||||
} catch (Throwable $throwable) {
|
||||
@@ -47,6 +46,6 @@ final readonly class UpdateRdapServersHandler
|
||||
} catch (Throwable $throwable) {
|
||||
$throws[] = $throwable;
|
||||
}
|
||||
if (!empty($throwable)) throw $throws[0];
|
||||
if (!empty($throws)) throw $throws[0];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user