Fix inverted error message
The code checks to see if the `child` is not a Python library, but then when reporting the error it uses the module name as the dependency name and the child (dependency) as the module name Test: Existing tests pass Change-Id: Ied606342291312d8485a8fd2ddcc580ad24ae82f
This commit is contained in:
parent
99d5a0f5c9
commit
d75507fff7
1 changed files with 1 additions and 1 deletions
|
@ -675,7 +675,7 @@ func (p *Module) collectPathsFromTransitiveDeps(ctx android.ModuleContext) {
|
|||
if !isPythonLibModule(child) {
|
||||
ctx.PropertyErrorf("libs",
|
||||
"the dependency %q of module %q is not Python library!",
|
||||
ctx.ModuleName(), ctx.OtherModuleName(child))
|
||||
ctx.OtherModuleName(child), ctx.ModuleName())
|
||||
}
|
||||
// collect source and data paths, checking that there are no duplicate output file conflicts
|
||||
if dep, ok := child.(pythonDependency); ok {
|
||||
|
|
Loading…
Reference in a new issue