Browse Source

WgQuickBackend: pass result to error string

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
master
Jason A. Donenfeld 5 years ago
parent
commit
7feb3dccbf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java

+ 1
- 1
app/src/main/java/com/wireguard/android/backend/WgQuickBackend.java View File

@@ -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));
}
}

Loading…
Cancel
Save