summaryrefslogtreecommitdiff
path: root/android/module.go
diff options
context:
space:
mode:
author Zi Wang <mrziwang@google.com> 2024-07-11 01:24:10 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-07-11 01:24:10 +0000
commit256772f02c96cedbad1d1d135f55f48b33bf9afc (patch)
treead8cf69cd4817730cc2ffe72b25ee8091c50d3bc /android/module.go
parent05f3927c090e32ab2ff4260f1e2d847dfef13a9a (diff)
parent9f7b9f4a9ab77d1816e8ae30ac8339e335fb7e92 (diff)
Merge "Use OutputFilesProvider on java modules" into main
Diffstat (limited to 'android/module.go')
-rw-r--r--android/module.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/android/module.go b/android/module.go
index 66f6e1bcd..2fe822f26 100644
--- a/android/module.go
+++ b/android/module.go
@@ -2491,6 +2491,8 @@ func outputFilesForModule(ctx PathContext, module blueprint.Module, tag string)
if outputFilesFromProvider != nil || err != OutputFilesProviderNotSet {
return outputFilesFromProvider, err
}
+ // TODO: add error when outputFilesFromProvider and err are both nil after
+ // OutputFileProducer and SourceFileProducer are deprecated.
if outputFileProducer, ok := module.(OutputFileProducer); ok {
paths, err := outputFileProducer.OutputFiles(tag)
if err != nil {
@@ -2505,7 +2507,7 @@ func outputFilesForModule(ctx PathContext, module blueprint.Module, tag string)
paths := sourceFileProducer.Srcs()
return paths, nil
} else {
- return nil, fmt.Errorf("module %q is not an OutputFileProducer or SourceFileProducer", pathContextName(ctx, module))
+ return nil, fmt.Errorf("module %q is not an SourceFileProducer or having valid output file for tag %q", pathContextName(ctx, module), tag)
}
}