diff --git a/app/Livewire/Server/Show.php b/app/Livewire/Server/Show.php index a5544489d..243855e9d 100644 --- a/app/Livewire/Server/Show.php +++ b/app/Livewire/Server/Show.php @@ -113,7 +113,8 @@ class Show extends Component ->where('id', '!=', $this->server->id) ->exists()) { $this->ip = $this->server->ip; - throw new \Exception('This IP/Domain is already in use by another server in your team.'); + + return $this->dispatch('error', 'This IP/Domain is already in use by another server in your team.'); } $this->server->name = $this->name;