summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Lukacs T. Berki <lberki@google.com> 2021-03-10 10:43:13 +0100
committer Lukacs T. Berki <lberki@google.com> 2021-03-10 10:43:13 +0100
commit8158356421092e9e6edc2c856dd2eee7339e7e4c (patch)
treef2959c0035fd5868cecc5f99f0ede2fa5290f64c
parent533274a2d359ac9e09aea9f56ae21479c4b6f299 (diff)
Print a correct error message when a non-hermetic tool is not found.
The old error message was wrong because this message is emitted specifically when a non-hermetic tool is not found. Test: Manual ("m nothing") Change-Id: I857c1c2bb059aff894e8bd3dd0c09b030c82035d
-rw-r--r--android/config.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/android/config.go b/android/config.go
index c10ad09ae..ae4df1cb0 100644
--- a/android/config.go
+++ b/android/config.go
@@ -542,9 +542,8 @@ func (c *config) NonHermeticHostSystemTool(name string) string {
}
}
panic(fmt.Errorf(
- "Unable to use '%s' as a host system tool for build system "+
- "hermeticity reasons. See build/soong/ui/build/paths/config.go "+
- "for the full list of allowed host tools on your system.", name))
+ "Cannot find non-hermetic system tool '%s' on path '%s'",
+ name, c.Getenv("PATH")))
}
// PrebuiltOS returns the name of the host OS used in prebuilts directories.