Do not ignore error when writing environment file

Test: m nothing
Change-Id: I4281e22ae10a649b51b9fbed7f8c1554f18885b9
This commit is contained in:
Paul Duffin 2021-03-05 12:26:14 +00:00
parent deba72161c
commit 5e85c665d0
1 changed files with 4 additions and 1 deletions

View File

@ -110,7 +110,10 @@ func runSoong(ctx Context, config Config) {
soongBuildEnv.Set("SOONG_DELVE_PATH", shared.ResolveDelveBinary())
}
writeEnvironmentFile(ctx, envFile, soongBuildEnv.AsMap())
err := writeEnvironmentFile(ctx, envFile, soongBuildEnv.AsMap())
if err != nil {
ctx.Fatalf("failed to write environment file %s: %s", envFile, err)
}
func() {
ctx.BeginTrace(metrics.RunSoong, "environment check")