Merge "Notify the caller about I/O error"

This commit is contained in:
Treehugger Robot
2019-04-16 11:52:31 +00:00
committed by Gerrit Code Review

View File

@@ -175,6 +175,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);