diff options
Diffstat (limited to 'android/singleton.go')
-rw-r--r-- | android/singleton.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 } } |