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.

dispatch an error message

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