mirror of https://github.com/M66B/FairEmail.git
Handle exceptions without message
This commit is contained in:
parent
3f440777e5
commit
cfb68b904c
|
@ -109,10 +109,10 @@ public class Helper {
|
|||
|
||||
static String formatThrowable(Throwable ex) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(ex.getMessage());
|
||||
sb.append(ex.getMessage() == null ? ex.getClass().getName() : ex.getMessage());
|
||||
Throwable cause = ex.getCause();
|
||||
while (cause != null) {
|
||||
sb.append(" ").append(cause.getMessage());
|
||||
sb.append(" ").append(cause.getMessage() == null ? cause.getClass().getName() : cause.getMessage());
|
||||
cause = cause.getCause();
|
||||
}
|
||||
return sb.toString();
|
||||
|
|
Loading…
Reference in New Issue