mirror of https://github.com/M66B/FairEmail.git
Improved error message
This commit is contained in:
parent
0571cc07a1
commit
84347bc54e
|
@ -212,8 +212,12 @@ public class ServiceAuthenticator extends Authenticator {
|
|||
Log.i("OAuth refreshed user=" + id + ":" + user);
|
||||
|
||||
if (holder.error != null) {
|
||||
if (!BuildConfig.PLAY_STORE_RELEASE)
|
||||
Log.e(new Throwable("Token refresh failed id=" + id, holder.error));
|
||||
if (!BuildConfig.PLAY_STORE_RELEASE) {
|
||||
String msg = (holder.error.getCause() == null ? null : holder.error.getCause().getMessage());
|
||||
Log.e(new Throwable("Token refresh failed id=" +
|
||||
id + (msg == null ? "" : " error=" + msg),
|
||||
holder.error));
|
||||
}
|
||||
throw holder.error;
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
|
|
Loading…
Reference in New Issue