aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2021-03-05 12:26:14 +0000
committerPaul Duffin <paulduffin@google.com>2021-03-05 17:46:29 +0000
commit5e85c665d0123091cb0c0e5c47228fe3487b79f9 (patch)
tree8b70034d170c903838c7f52cdab4e834b4ee9a66 /ui
parentdeba72161ca1573a9236b966be0492c81c509b09 (diff)
downloadsoong-5e85c665d0123091cb0c0e5c47228fe3487b79f9.tar.gz
Do not ignore error when writing environment file
Test: m nothing Change-Id: I4281e22ae10a649b51b9fbed7f8c1554f18885b9
Diffstat (limited to 'ui')
-rw-r--r--ui/build/soong.go5
1 files changed, 4 insertions, 1 deletions
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")