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.

verbose error

Andras Bacsai37646bcfa04d
diff --git a/app/Http/Livewire/Server/PrivateKey.php b/app/Http/Livewire/Server/PrivateKey.php
index 57ec27e1fb..e295b16164 100644
--- a/app/Http/Livewire/Server/PrivateKey.php
+++ b/app/Http/Livewire/Server/PrivateKey.php
@@ -16,14 +16,12 @@ class PrivateKey extends Component
public function checkConnection()
{
try {
- $uptime = instant_remote_process(['uptime'], $this->server, false);
+ $uptime = instant_remote_process(['uptime'], $this->server);
if ($uptime) {
Toaster::success('Server is reachable with this private key.');
- } else {
- Toaster::error('Server is NOT reachable with this private key.');
}
} catch (\Exception $e) {
- return general_error_handler(err: $e, that: $this);
+ return general_error_handler(customErrorMessage: "Server is not reachable. Reason: {$e->getMessage()}", that: $this);
}
}
public function setPrivateKey($private_key_id)