From 40c6e3bc40b6c40ea5754618340c0b9efa887ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Wed, 14 Feb 2018 10:51:21 +0000 Subject: [PATCH] Show dev on error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- src/show.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/show.c b/src/show.c index 888092b..e66eafc 100644 --- a/src/show.c +++ b/src/show.c @@ -11,7 +11,7 @@ static int gt_show_tunnel(int fd, const char *dev) { if (ctl_connect(fd, "/run/" PACKAGE_NAME, dev) == -1) { - perror("connect"); + perror(dev); return -1; } @@ -21,7 +21,7 @@ gt_show_tunnel(int fd, const char *dev) if ((send(fd, &msg, sizeof(msg), 0) == -1) || (recv(fd, &reply, sizeof(reply), 0) == -1)) { - perror("send/recv"); + perror(dev); return -1; }