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:
parent
3dbeae104d
commit
d11d7115a0
2 changed files with 4 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue