Populate error message if apexd.markStagedSessionReady fails

am: 3e5c848764

Change-Id: I788bb2e9e9207482463b5c284ab7015975e0918c
This commit is contained in:
Nikita Ioffe
2019-07-11 04:33:13 -07:00
committed by android-build-merger

View File

@@ -333,10 +333,14 @@ class ApexManager {
boolean markStagedSessionReady(int sessionId) {
if (!isApexSupported()) return false;
try {
return mApexService.markStagedSessionReady(sessionId);
mApexService.markStagedSessionReady(sessionId);
return true;
} catch (RemoteException re) {
Slog.e(TAG, "Unable to contact apexservice", re);
throw new RuntimeException(re);
} catch (Exception e) {
Slog.e(TAG, "Failed to mark session " + sessionId + " ready", e);
return false;
}
}