I/O errors are expected

This commit is contained in:
M66B 2020-12-06 17:47:47 +01:00
parent 2b0bdebab0
commit b7777cfc52
1 changed files with 2 additions and 2 deletions

View File

@ -2262,8 +2262,8 @@ public class FragmentCompose extends FragmentBase {
if (ex instanceof IOException &&
ex.getCause() instanceof ErrnoException &&
((ErrnoException) ex.getCause()).errno == ENOSPC)
ex = new Throwable(getContext().getString(R.string.app_cake), ex);
Log.unexpectedError(getParentFragmentManager(), ex);
ex = new IOException(getContext().getString(R.string.app_cake), ex);
Log.unexpectedError(getParentFragmentManager(), ex, !(ex instanceof IOException));
}
}
}.execute(this, args, "compose:attachment:add");