From 7feb3dccbf29af146e3b857d87f7de47d4301cad Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 16 Mar 2019 12:24:28 -0600 Subject: WgQuickBackend: pass result to error string Signed-off-by: Jason A. Donenfeld --- app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main') 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 6bfa99b4..71427d8a 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)); } } -- cgit v1.2.3