Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f206c62 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Notify the caller about I/O error"

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