Revert "dispatch an error message"

This reverts commit b18d4b9564.
This commit is contained in:
peaklabs-dev
2024-11-14 17:52:54 +01:00
parent 020ad0d852
commit 0a36fbddec

View File

@@ -113,8 +113,7 @@ class Show extends Component
->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;