Merge "Improve error message for dupe srcs in genrule" am: a5969bec06 am: 8d0b528a3c

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1850000

Change-Id: Ie2e9cc504226c5de4cadaa98106713abd86aafa2
This commit is contained in:
Anton Hansson
2022-02-18 21:48:18 +00:00
committed by Automerger Merge Worker

View File

@@ -294,7 +294,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)
}
}