summaryrefslogtreecommitdiff
path: root/python/python.go
diff options
context:
space:
mode:
author Alex Márquez Pérez Muñíz Díaz Púras Thaureaux <alexmarquez@google.com> 2021-08-20 21:02:43 +0000
committer Alex Márquez Pérez Muñíz Díaz Púras Thaureaux <alexmarquez@google.com> 2021-08-20 21:02:43 +0000
commitd75507fff7f542753f2cc3b2c8b6d022c762650d (patch)
tree0bdc9900b05f65a79346d668053961df4baa9bf8 /python/python.go
parent99d5a0f5c9f2ba5386134b44d44be03ccaf94b35 (diff)
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
Diffstat (limited to 'python/python.go')
-rw-r--r--python/python.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/python.go b/python/python.go
index 0f5b7880e..83844e642 100644
--- a/python/python.go
+++ b/python/python.go
@@ -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 {