refactor(error-handling): change Exception to RuntimeException for clearer error reporting

This commit is contained in:
Andras Bacsai
2025-05-29 10:54:35 +02:00
parent 2361c34a53
commit c272a770e2

View File

@@ -27,7 +27,7 @@ class StartSentinel
$mountDir = '/data/coolify/sentinel'; $mountDir = '/data/coolify/sentinel';
$image = config('constants.coolify.registry_url').'/coollabsio/sentinel:'.$version; $image = config('constants.coolify.registry_url').'/coollabsio/sentinel:'.$version;
if (! $endpoint) { if (! $endpoint) {
throw new \Exception('You should set FQDN in Instance Settings.'); throw new \RuntimeException('You should set FQDN in Instance Settings.');
} }
$environments = [ $environments = [
'TOKEN' => $token, 'TOKEN' => $token,