From a5ea2479d3e7311face6baf38dbd9d5059c9907a Mon Sep 17 00:00:00 2001 From: Bob Badour Date: Fri, 20 May 2022 16:37:26 -0700 Subject: Fix bug: allow multiple gen_notice modules. Test: m cts dist reportmissinglicenses Change-Id: I07963c83eaddfe363a04871e813b56fe7f1465ad --- android/singleton.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'android/singleton.go') diff --git a/android/singleton.go b/android/singleton.go index ec7f63eca..7c6cf4fd6 100644 --- a/android/singleton.go +++ b/android/singleton.go @@ -272,7 +272,8 @@ func (s *singletonContextAdaptor) ModuleVariantsFromName(referer Module, name st if depQualified.pkg != qualified.pkg { rule := effectiveVisibilityRules(s.Config(), depQualified) if !rule.matches(qualified) { - s.ModuleErrorf(referer, "references %s which is not visible to this module\nYou may need to add %q to its visibility", depQualified, "//"+s.ModuleDir(m)) + s.ModuleErrorf(referer, "module %q references %q which is not visible to this module\nYou may need to add %q to its visibility", + referer.Name(), depQualified, "//"+s.ModuleDir(referer)) continue } } -- cgit v1.2.3-59-g8ed1b