Merge "Notify the caller about I/O error" am: 2f206c6270

am: 22fd8708f3

Change-Id: I33045e638efcc6e0f700cf935d0f0e4de8ecc61d
This commit is contained in:
Abhijeet Kaur
2019-04-16 05:20:14 -07:00
committed by android-build-merger

View File

@@ -177,6 +177,7 @@ public final class BugreportManager {
// Need to delete the file if it was created but failed while trying to get fd
deleteFile(tmpScreenshotFile);
Log.e(TAG, "Not able to create/open temporary screenshot file ", e);
callback.onError(BugreportCallback.BUGREPORT_ERROR_RUNTIME);
} finally {
// We can close the file descriptors here because binder would have duped them.
IoUtils.closeQuietly(bugreportFd);