aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/show.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-18 19:51:33 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-18 19:51:51 +0200
commit04346eeae61d9db52bc20695015a610dd016191a (patch)
tree51ae8ff679e72b7bdee2ce34e32c6be7ac9cddc5 /src/tools/show.c
parenttimers: round up instead of down in slack_time (diff)
downloadwireguard-monolithic-historical-04346eeae61d9db52bc20695015a610dd016191a.tar.xz
wireguard-monolithic-historical-04346eeae61d9db52bc20695015a610dd016191a.zip
tools: fix errno propagation and messages
Diffstat (limited to 'src/tools/show.c')
-rw-r--r--src/tools/show.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/show.c b/src/tools/show.c
index 3fd6a67..1b8712f 100644
--- a/src/tools/show.c
+++ b/src/tools/show.c
@@ -390,7 +390,7 @@ int show_main(int argc, char *argv[])
char *interfaces = ipc_list_devices(), *interface;
if (!interfaces) {
- perror("Unable to get devices");
+ perror("Unable to list interfaces");
return 1;
}
interface = interfaces;
@@ -398,7 +398,7 @@ int show_main(int argc, char *argv[])
struct wgdevice *device = NULL;
if (ipc_get_device(&device, interface) < 0) {
- perror("Unable to get device");
+ perror("Unable to access interface");
continue;
}
if (argc == 3) {
@@ -424,7 +424,7 @@ int show_main(int argc, char *argv[])
}
interfaces = ipc_list_devices();
if (!interfaces) {
- perror("Unable to get devices");
+ perror("Unable to list interfaces");
return 1;
}
interface = interfaces;
@@ -437,7 +437,7 @@ int show_main(int argc, char *argv[])
struct wgdevice *device = NULL;
if (ipc_get_device(&device, argv[1]) < 0) {
- perror("Unable to get device");
+ perror("Unable to access interface");
return 1;
}
if (argc == 3) {