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");
}