Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Revert "dispatch an error message"

peaklabs-dev0a36fbddec7e
diff --git a/app/Livewire/Server/Show.php b/app/Livewire/Server/Show.php
index 243855e9db..a5544489dd 100644
--- a/app/Livewire/Server/Show.php
+++ b/app/Livewire/Server/Show.php
@@ -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;