From 0a36fbddec7e339ee41f1d4065ccd3d8dabe7fda Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Thu, 14 Nov 2024 17:52:54 +0100 Subject: [PATCH] Revert "dispatch an error message" This reverts commit b18d4b95642c462c75ebfbdb502cab93561b909d. --- app/Livewire/Server/Show.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Livewire/Server/Show.php b/app/Livewire/Server/Show.php index 243855e9d..a5544489d 100644 --- a/app/Livewire/Server/Show.php +++ b/app/Livewire/Server/Show.php @@ -113,8 +113,7 @@ public function syncData(bool $toModel = false) ->where('id', '!=', $this->server->id) ->exists()) { $this->ip = $this->server->ip; - - return $this->dispatch('error', 'This IP/Domain is already in use by another server in your team.'); + throw new \Exception('This IP/Domain is already in use by another server in your team.'); } $this->server->name = $this->name;