diff options
Diffstat (limited to 'java/hiddenapi_singleton.go')
-rw-r--r-- | java/hiddenapi_singleton.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/java/hiddenapi_singleton.go b/java/hiddenapi_singleton.go index 43d54bfd3..f6af50132 100644 --- a/java/hiddenapi_singleton.go +++ b/java/hiddenapi_singleton.go @@ -151,8 +151,7 @@ func (h *hiddenAPISingleton) GenerateBuildActions(ctx android.SingletonContext) // Checks to see whether the supplied module variant is in the list of boot jars. // -// This is similar to logic in getBootImageJar() so any changes needed here are likely to be needed -// there too. +// Apart from the context this is identical to isModuleInConfiguredListForSingleton. // // TODO(b/179354495): Avoid having to perform this type of check or if necessary dedup it. func isModuleInConfiguredList(ctx android.BaseModuleContext, module android.Module, configuredBootJars android.ConfiguredJarList) bool { @@ -169,7 +168,7 @@ func isModuleInConfiguredList(ctx android.BaseModuleContext, module android.Modu // It is an error if the module is not an ApexModule. if _, ok := module.(android.ApexModule); !ok { - ctx.ModuleErrorf("is configured in boot jars but does not support being added to an apex") + ctx.ModuleErrorf("%s is configured in boot jars but does not support being added to an apex", ctx.OtherModuleName(module)) return false } |