Improved error message

pull/180/head
M66B 5 years ago
parent 663ef11d98
commit 62970a983c

@ -1189,7 +1189,10 @@ public class FragmentRule extends FragmentBase {
@Override @Override
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {
Log.unexpectedError(getParentFragmentManager(), ex); if (ex instanceof IllegalArgumentException)
ToastEx.makeText(getContext(), ex.getMessage(), Toast.LENGTH_LONG).show();
else
Log.unexpectedError(getParentFragmentManager(), ex);
} }
}.execute(FragmentDialogCheck.this, args, "rule:execute"); }.execute(FragmentDialogCheck.this, args, "rule:execute");
} }

Loading…
Cancel
Save