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