quit if build fails

This commit is contained in:
Daylin Morgan 2024-03-11 10:22:35 -05:00
parent ba0c40c2f5
commit 8ceae1884b
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -79,9 +79,11 @@ proc cache(c: OizysContext) =
--print-build-logs \
--accept-flake-config
"""
let duration = (now() - start)
if code != 0:
error "faile to build configuration for: ", c.host
error "failed to build configuration for: ", c.host
quit code
if summaryFile != "":
writeFile(