Append the exception message to errorMsg field of session

Bug: 170784748
Test: manual
Change-Id: I9d9c3de7e8387363b7474ec52ca9a5fe3a516485
This commit is contained in:
Mohammad Samiul Islam
2020-11-05 21:01:41 +00:00
parent 5c451faad4
commit eba5e34e53

View File

@@ -919,10 +919,10 @@ public class StagingManager {
} catch (PackageManagerException e) {
onInstallationFailure(session, e);
} catch (Exception e) {
final String errorMsg = "Staged install failed due to unhandled exception";
Slog.e(TAG, errorMsg, e);
Slog.e(TAG, "Staged install failed due to unhandled exception", e);
onInstallationFailure(session, new PackageManagerException(
SessionInfo.STAGED_SESSION_ACTIVATION_FAILED, errorMsg));
SessionInfo.STAGED_SESSION_ACTIVATION_FAILED,
"Staged install failed due to unhandled exception: " + e));
}
}
}