From 74646a4afa6557a0363cc85e0a95d578d4ab0ac2 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 16 Jul 2012 01:09:47 +0200 Subject: [PATCH] Give an error message when tincctl info cannot parse the given subnet or address. --- src/info.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/info.c b/src/info.c index d0764da2..f354f96f 100644 --- a/src/info.c +++ b/src/info.c @@ -164,8 +164,10 @@ static int info_node(int fd, const char *item) { static int info_subnet(int fd, const char *item) { subnet_t subnet, find; - if(!str2net(&find, item)) + if(!str2net(&find, item)) { + fprintf(stderr, "Could not parse subnet or address '%s'.\n", item); return 1; + } bool address = !strchr(item, '/'); bool weight = strchr(item, '#'); -- 2.39.5