diff --git a/app/Jobs/ServerStatusJob.php b/app/Jobs/ServerStatusJob.php index 63033d7b8..6402b81cf 100644 --- a/app/Jobs/ServerStatusJob.php +++ b/app/Jobs/ServerStatusJob.php @@ -38,7 +38,7 @@ public function uniqueId(): int public function handle() { if (!$this->server->isServerReady($this->tries)) { - return "Server is not ready yet."; + throw new \RuntimeException('Server is not ready.'); }; try { if ($this->server->isFunctional()) {