From 4da9a97a7024960ef8210e10b76204ef2fdaf979 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 9 Aug 2010 21:57:05 +0200 Subject: [PATCH] collectdctl: Improved error reporting. --- src/collectdctl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/collectdctl.c b/src/collectdctl.c index adf45c97..cc195095 100644 --- a/src/collectdctl.c +++ b/src/collectdctl.c @@ -271,6 +271,10 @@ static int flush (lcc_connection_t *c, int argc, char **argv) if (status != 0) BAIL_OUT (status); } + else { + fprintf (stderr, "ERROR: flush: Unknown option `%s'.\n", key); + BAIL_OUT (-1); + } } if (plugins_num == 0) { -- 2.11.0