mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Wrap throwables
This commit is contained in:
@@ -205,7 +205,7 @@ public class FragmentGmail extends FragmentBase {
|
||||
startActivityForResult(intent, ActivitySetup.REQUEST_CHOOSE_ACCOUNT);
|
||||
} catch (Throwable ex) {
|
||||
if (ex instanceof IllegalArgumentException)
|
||||
tvError.setText(ex.getMessage());
|
||||
tvError.setText(new ThrowableWrapper(ex).getSafeMessage());
|
||||
else
|
||||
tvError.setText(Log.formatThrowable(ex, false));
|
||||
grpError.setVisibility(View.VISIBLE);
|
||||
@@ -631,7 +631,7 @@ public class FragmentGmail extends FragmentBase {
|
||||
Log.e(ex);
|
||||
|
||||
if (ex instanceof IllegalArgumentException)
|
||||
tvError.setText(ex.getMessage());
|
||||
tvError.setText(new ThrowableWrapper(ex).getSafeMessage());
|
||||
else
|
||||
tvError.setText(Log.formatThrowable(ex, false));
|
||||
grpError.setVisibility(View.VISIBLE);
|
||||
|
||||
Reference in New Issue
Block a user