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
diff --git a/genrule/genrule.go b/genrule/genrule.go
index 4dd2135..7dbe6fa 100644
--- a/genrule/genrule.go
+++ b/genrule/genrule.go
@@ -290,7 +290,7 @@
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)
}
}