Skip to content

Commit 8e7585e

Browse files
authored
Merge pull request #127 from containers/fix-compose-build-error-reporting
fix(compose): `.build` Quadlet file error reporting
2 parents f313850 + 79cd688 commit 8e7585e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cli/compose.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ fn services_try_into_quadlet_files<'a>(
347347
install: install.cloned(),
348348
})
349349
});
350+
if let Some(result @ Err(_)) = build {
351+
return iter::once(result).chain(None);
352+
}
350353

351354
let container = service_try_into_quadlet_file(
352355
service,

0 commit comments

Comments
 (0)