From: Sebastian Harl Date: Mon, 9 Aug 2010 19:57:05 +0000 (+0200) Subject: collectdctl: Improved error reporting. X-Git-Tag: collectd-5.0.0-beta0~55 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4da9a97a7024960ef8210e10b76204ef2fdaf979;p=collectd.git collectdctl: Improved error reporting. --- 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) {