From 7e5d21a8896e111dc710f8d0597a04db881ded55 Mon Sep 17 00:00:00 2001 From: Lance Pioch Date: Sat, 23 Mar 2024 08:07:21 -0400 Subject: [PATCH] Do all exceptions here --- app/Models/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Server.php b/app/Models/Server.php index 41113d147..47ffee504 100644 --- a/app/Models/Server.php +++ b/app/Models/Server.php @@ -387,7 +387,7 @@ class Server extends Model return Http::daemon($this->node)->post("/api/servers/{$this->uuid}/commands", [ 'commands' => is_array($command) ? $command : [$command], ])->toPsrResponse(); - } catch (TransferException $exception) { + } catch (GuzzleException $exception) { throw new DaemonConnectionException($exception); } }