Improved DeepL error reporting

pull/199/head
M66B 4 years ago
parent 3dbeae104d
commit d11d7115a0

@ -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…
Cancel
Save