fix: show it docker compose has syntax errors

This commit is contained in:
Andras Bacsai committed 2024-05-21 12:02:04 +02:00
1 parent bea490081b
commit 7feb788ed3
4 files changed
+17 -5

No files matched your search

+1 -1
View File
@@ -879,7 +879,7 @@ class Application extends BaseModel
if (!$composeFileContent) {
$this->docker_compose_location = $initialDockerComposeLocation;
$this->save();
throw new \RuntimeException("Docker Compose file not found at: $workdir$composeFile");
throw new \RuntimeException("Docker Compose file not found at: $workdir$composeFile<br><br>Check if you used the right extension (.yaml or .yml) in the compose file name.");
} else {
$this->docker_compose_raw = $composeFileContent;
$this->save();