Unwrap the correct exception

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Zachary Wander 2018-12-10 19:38:21 -05:00 committed by Jason A. Donenfeld
parent 0f669e8ca3
commit c1ba1f409c

View File

@ -66,7 +66,7 @@ public enum ExceptionLoggers implements BiConsumer<Object, Throwable> {
message = null;
}
} else {
message = throwable.getMessage();
message = innerThrowable.getMessage();
}
return message != null ? message : innerThrowable.getClass().getSimpleName();
}