fix: old docker version error

This commit is contained in:
Andras Bacsai
2023-09-11 17:19:30 +02:00
parent 363f525ad1
commit 16c71f3647
2 changed files with 6 additions and 4 deletions

View File

@@ -38,12 +38,13 @@ class ShowPrivateKey extends Component
if ($uptime) {
$this->emit('success', 'Server is reachable with this private key.');
} else {
throw new \Exception('Server is not reachable with this private key.');
$this->emit('error', 'Server is not reachable with this private key.');
return;
}
if ($dockerVersion) {
$this->emit('success', 'Server is usable for Coolify.');
} else {
throw new \Exception('Old Docker version detected (lower than 23).');
$this->emit('error', 'Old (lower than 23) or no Docker version detected. Install Docker Engine on the General tab.');
}
} catch (\Exception $e) {
throw new \Exception($e->getMessage());