Improve error message for dupe srcs in genrule

The previous error message did not really give a good indication
of what the problems with my genrule was.

Test: Make a broken genrule
Change-Id: I4bb67f2792ca5a910f70354f10d0f81f330b5c96
This commit is contained in:
Anton Hansson
2021-10-08 16:13:10 +01:00
parent ebf79bfb4a
commit 7cd41e5a08

View File

@@ -290,7 +290,7 @@ func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) {
if _, exists := locationLabels[label]; !exists {
locationLabels[label] = loc
} else {
ctx.ModuleErrorf("multiple labels for %q, %q and %q",
ctx.ModuleErrorf("multiple locations for label %q: %q and %q (do you have duplicate srcs entries?)",
label, locationLabels[label], loc)
}
}