aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-30 13:06:51 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-30 13:06:51 +0000
commit91b1aa807cc9cda1dc109bdc8760ff3a4540cab5 (patch)
tree25a5ff90690afca9ffed3beb392aa4d359104410
parente5c57ab0ffad11a6c1d05eb5be50574057d96699 (diff)
downloadgnunet-91b1aa807cc9cda1dc109bdc8760ff3a4540cab5.tar.gz
gnunet-91b1aa807cc9cda1dc109bdc8760ff3a4540cab5.zip
-better error reporting
-rw-r--r--src/exit/gnunet-helper-exit.c8
-rw-r--r--src/vpn/gnunet-helper-vpn.c7
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)
662 662
663 if (-1 == (fd_tun = init_tun (dev))) 663 if (-1 == (fd_tun = init_tun (dev)))
664 { 664 {
665 fprintf (stderr, "Fatal: could not initialize tun-interface\n"); 665 fprintf (stderr,
666 "Fatal: could not initialize tun-interface `%s' with IPv6 %s/%s and IPv4 %s/%s\n",
667 dev,
668 argv[3],
669 argv[4],
670 argv[5],
671 argv[6]);
666 return 1; 672 return 1;
667 } 673 }
668 674
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)
553 553
554 if (-1 == (fd_tun = init_tun (dev))) 554 if (-1 == (fd_tun = init_tun (dev)))
555 { 555 {
556 fprintf (stderr, "Fatal: could not initialize tun-interface\n"); 556 fprintf (stderr, "Fatal: could not initialize tun-interface `%s' with IPv6 %s/%s and IPv4 %s/%s\n",
557 dev,
558 argv[2],
559 argv[3],
560 argv[4],
561 argv[5]);
557 return 1; 562 return 1;
558 } 563 }
559 564