Merge "Append root cause with error message while parsing APEX"
This commit is contained in:
@@ -203,7 +203,7 @@ public class StagingManager {
|
||||
newSigningDetails = ApkSignatureVerifier.verify(apexPath, minSignatureScheme);
|
||||
} catch (PackageParserException e) {
|
||||
throw new PackageManagerException(SessionInfo.STAGED_SESSION_VERIFICATION_FAILED,
|
||||
"Failed to parse APEX package " + apexPath, e);
|
||||
"Failed to parse APEX package " + apexPath + " : " + e, e);
|
||||
}
|
||||
|
||||
// Get signing details of the existing package
|
||||
@@ -221,7 +221,8 @@ public class StagingManager {
|
||||
existingApexPkg.applicationInfo.sourceDir, SignatureSchemeVersion.JAR);
|
||||
} catch (PackageParserException e) {
|
||||
throw new PackageManagerException(SessionInfo.STAGED_SESSION_VERIFICATION_FAILED,
|
||||
"Failed to parse APEX package " + existingApexPkg.applicationInfo.sourceDir, e);
|
||||
"Failed to parse APEX package " + existingApexPkg.applicationInfo.sourceDir
|
||||
+ " : " + e, e);
|
||||
}
|
||||
|
||||
// Verify signing details for upgrade
|
||||
@@ -283,7 +284,7 @@ public class StagingManager {
|
||||
}
|
||||
} catch (PackageParserException e) {
|
||||
throw new PackageManagerException(SessionInfo.STAGED_SESSION_VERIFICATION_FAILED,
|
||||
"Failed to parse APEX package " + apexInfo.modulePath, e);
|
||||
"Failed to parse APEX package " + apexInfo.modulePath + " : " + e, e);
|
||||
}
|
||||
final PackageInfo activePackage = mApexManager.getPackageInfo(packageInfo.packageName,
|
||||
ApexManager.MATCH_ACTIVE_PACKAGE);
|
||||
|
||||
Reference in New Issue
Block a user