Skip to content

Commit

Permalink
Return correct errors when parsing APK (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
hisaac authored Jun 7, 2022
1 parent a7fb150 commit 845c384
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apk_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 845c384

Please sign in to comment.