aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-16 12:24:28 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-16 12:24:28 -0600
commit020e8a40fedc6172099a9b4f5dae03a0e4e950fa (patch)
treee059af6582d9ab24b3e8768fa5ea66c3935f8f55
parentVersion bump (diff)
downloadwireguard-android-020e8a40fedc6172099a9b4f5dae03a0e4e950fa.tar.xz
wireguard-android-020e8a40fedc6172099a9b4f5dae03a0e4e950fa.zip
WgQuickBackend: pass result to error string
-rw-r--r--app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java b/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java
index 6bfa99b..71427d8 100644
--- a/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java
+++ b/app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java
@@ -128,6 +128,6 @@ public final class WgQuickBackend implements Backend {
// noinspection ResultOfMethodCallIgnored
tempFile.delete();
if (result != 0)
- throw new Exception(context.getString(R.string.tunnel_config_error));
+ throw new Exception(context.getString(R.string.tunnel_config_error, result));
}
}