From 5e85c665d0123091cb0c0e5c47228fe3487b79f9 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Fri, 5 Mar 2021 12:26:14 +0000 Subject: [PATCH] Do not ignore error when writing environment file Test: m nothing Change-Id: I4281e22ae10a649b51b9fbed7f8c1554f18885b9 --- ui/build/soong.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/build/soong.go b/ui/build/soong.go index fc4366397..242282bf3 100644 --- a/ui/build/soong.go +++ b/ui/build/soong.go @@ -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")