From 52df8e6e8b647dc156342162ef06c6f86ee6ed46 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 3 May 2024 13:43:54 +0200 Subject: [PATCH] Fix server status check in ServerStatusJob.php --- app/Jobs/ServerStatusJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {