summaryrefslogtreecommitdiff
path: root/scripts/gen-kotlin-build-file.py
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-05-04 18:09:43 -0700
committer Cole Faust <colefaust@google.com> 2024-05-04 18:09:43 -0700
commita5a1fa1d093f75090aa476ab1d378264aa99d30d (patch)
treeead9e05b14655f6ffe716ad70ba7120176ce8b4a /scripts/gen-kotlin-build-file.py
parent01bd5b1ddf0706ecb683f1fc70bf1d11028e7591 (diff)
Fix reference unknown variable 'file'
Also log the rspfile for easier debugging. Bug: 318434287 Test: Presubmits Change-Id: I4ef6f2065a39ce6fef816f7241d079149043ffd0
Diffstat (limited to 'scripts/gen-kotlin-build-file.py')
-rw-r--r--scripts/gen-kotlin-build-file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen-kotlin-build-file.py b/scripts/gen-kotlin-build-file.py
index 83b4cd8a3..99afdca75 100644
--- a/scripts/gen-kotlin-build-file.py
+++ b/scripts/gen-kotlin-build-file.py
@@ -79,7 +79,7 @@ def main():
elif src.endswith('.kt'):
f.write(' <sources path="%s"/>\n' % path)
else:
- raise RuntimeError('unknown source file type %s' % file)
+ raise RuntimeError(f'unknown source file type {src} from rspfile {rsp_file}')
for rsp_file in args.common_srcs:
for src in NinjaRspFileReader(rsp_file):