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
This commit is contained in:
parent
aa26ce4d75
commit
198dcf91ca
1 changed files with 1 additions and 1 deletions
|
@ -2456,7 +2456,7 @@ def GetMinSdkVersion(apk_name):
|
||||||
m = re.match(r'(?:minSdkVersion|sdkVersion):\'([^\']*)\'', line)
|
m = re.match(r'(?:minSdkVersion|sdkVersion):\'([^\']*)\'', line)
|
||||||
if m:
|
if m:
|
||||||
return m.group(1)
|
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):
|
def GetMinSdkVersionInt(apk_name, codename_to_api_level_map):
|
||||||
|
|
Loading…
Reference in a new issue