From 91b1aa807cc9cda1dc109bdc8760ff3a4540cab5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 30 Jan 2012 13:06:51 +0000 Subject: [PATCH] -better error reporting --- src/exit/gnunet-helper-exit.c | 8 +++++++- src/vpn/gnunet-helper-vpn.c | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/exit/gnunet-helper-exit.c b/src/exit/gnunet-helper-exit.c index df52183a7..518bebfc4 100644 --- a/src/exit/gnunet-helper-exit.c +++ b/src/exit/gnunet-helper-exit.c @@ -662,7 +662,13 @@ main (int argc, char **argv) if (-1 == (fd_tun = init_tun (dev))) { - fprintf (stderr, "Fatal: could not initialize tun-interface\n"); + fprintf (stderr, + "Fatal: could not initialize tun-interface `%s' with IPv6 %s/%s and IPv4 %s/%s\n", + dev, + argv[3], + argv[4], + argv[5], + argv[6]); return 1; } diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c index 77512832d..5a1b708e2 100644 --- a/src/vpn/gnunet-helper-vpn.c +++ b/src/vpn/gnunet-helper-vpn.c @@ -553,7 +553,12 @@ main (int argc, char **argv) if (-1 == (fd_tun = init_tun (dev))) { - fprintf (stderr, "Fatal: could not initialize tun-interface\n"); + fprintf (stderr, "Fatal: could not initialize tun-interface `%s' with IPv6 %s/%s and IPv4 %s/%s\n", + dev, + argv[2], + argv[3], + argv[4], + argv[5]); return 1; } -- 2.25.1