WgQuickBackend: pass result to error string

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2019-03-16 12:24:28 -06:00
parent 2251d74fce
commit 7feb3dccbf

View File

@ -128,6 +128,6 @@ public final class WgQuickBackend implements Backend {
// noinspection ResultOfMethodCallIgnored // noinspection ResultOfMethodCallIgnored
tempFile.delete(); tempFile.delete();
if (result != 0) if (result != 0)
throw new Exception(context.getString(R.string.tunnel_config_error)); throw new Exception(context.getString(R.string.tunnel_config_error, result));
} }
} }