diff options
author | Spandan Das <spandandas@google.com> | 2024-03-25 21:24:33 +0000 |
---|---|---|
committer | Spandan Das <spandandas@google.com> | 2024-03-25 21:24:33 +0000 |
commit | 198dcf91ca3199d83d17c62b273b7866fa850390 (patch) | |
tree | 092fd3050d1ae3b8ec778cbb6d5e266d6f7d1d0b | |
parent | aa26ce4d75ca724cc949821823fd9ee02101b0c3 (diff) | |
download | build-198dcf91ca3199d83d17c62b273b7866fa850390.tar.gz |
Add apk_name information in error message
Logging the apk_name will improve debugging process if
`GetMinSdkVersion` returns an exception.
Test: None
Change-Id: I3ddf602d92701dcaaa4821fe42a76a870a721a11
-rw-r--r-- | tools/releasetools/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py index 8a8a613c78..dff782e638 100644 --- a/tools/releasetools/common.py +++ b/tools/releasetools/common.py @@ -2456,7 +2456,7 @@ def GetMinSdkVersion(apk_name): m = re.match(r'(?:minSdkVersion|sdkVersion):\'([^\']*)\'', line) if m: return m.group(1) - raise ExternalError("No minSdkVersion returned by aapt2") + raise ExternalError("No minSdkVersion returned by aapt2 for apk: {}".format(apk_name)) def GetMinSdkVersionInt(apk_name, codename_to_api_level_map): |