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;