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:
@@ -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