From 845c384eff4a5b4ab5009ea7113fe3dc79011f4e Mon Sep 17 00:00:00 2001 From: Isaac Halvorson Date: Tue, 7 Jun 2022 13:13:12 -0500 Subject: [PATCH] Return correct errors when parsing APK (#79) --- apk_info.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apk_info.go b/apk_info.go index 972966a..272b244 100644 --- a/apk_info.go +++ b/apk_info.go @@ -28,10 +28,10 @@ func parseAPKextractNativeLibs(apkPath string) (bool, error) { return false, fmt.Errorf("failed to unzip the APK: %s", zipErr) } if resErr != nil { - return false, fmt.Errorf("failed to parse resources: %s", zipErr) + return false, fmt.Errorf("failed to parse resources: %s", resErr) } if manErr != nil { - return false, fmt.Errorf("failed to parse AndroidManifest.xml: %s", zipErr) + return false, fmt.Errorf("failed to parse AndroidManifest.xml: %s", manErr) } var manifest manifest