refactor(error-handling): replace generic Exception with RuntimeException for improved error specificity

This commit is contained in:
Andras Bacsai committed 2025-05-29 10:49:55 +02:00
1 parent 0369909408
commit 2361c34a53
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -1289,7 +1289,7 @@ class Application extends BaseModel
try {
$yaml = Yaml::parse($this->docker_compose_raw);
} catch (\Exception $e) {
throw new \Exception($e->getMessage());
throw new \RuntimeException($e->getMessage());
}
$services = data_get($yaml, 'services');