aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorZachary Wander <zachary.wander@gmail.com>2018-12-10 19:38:21 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2018-12-11 02:21:37 +0100
commit15aa724b1ddae80c9df4fa09cd770841747d7787 (patch)
treede84c496770a651f4de71303896654ca73bd1c7f
parentOrder strings (diff)
downloadwireguard-android-15aa724b1ddae80c9df4fa09cd770841747d7787.tar.xz
wireguard-android-15aa724b1ddae80c9df4fa09cd770841747d7787.zip
Unwrap the correct exception
-rw-r--r--app/src/main/java/com/wireguard/android/util/ExceptionLoggers.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/util/ExceptionLoggers.java b/app/src/main/java/com/wireguard/android/util/ExceptionLoggers.java
index 199b1fb..f9cadf5 100644
--- a/app/src/main/java/com/wireguard/android/util/ExceptionLoggers.java
+++ b/app/src/main/java/com/wireguard/android/util/ExceptionLoggers.java
@@ -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();
}