1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-22 14:11:00 +00:00

Improved DeepL error reporting

This commit is contained in:
M66B 2021-07-12 08:40:49 +02:00
parent 3dbeae104d
commit d11d7115a0
2 changed files with 4 additions and 2 deletions

View file

@ -6732,7 +6732,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
@Override
protected void onException(Bundle args, Throwable ex) {
tvText.setText(ex.toString());
Throwable exex = new Throwable("DeepL", ex);
ToastEx.makeText(context, Log.formatThrowable(exex), Toast.LENGTH_LONG).show();
}
}.execute(FragmentDialogTranslate.this, args, "paragraph:translate");
}

View file

@ -818,7 +818,8 @@ public class FragmentCompose extends FragmentBase {
@Override
protected void onException(Bundle args, Throwable ex) {
Log.unexpectedError(getParentFragmentManager(), ex, false);
Throwable exex = new Throwable("DeepL", ex);
Log.unexpectedError(getParentFragmentManager(), exex, false);
}
}.execute(FragmentCompose.this, args, "compose:translate");
}