# HG changeset patch # User szabi # Date 1003782145 0 # Node ID c1f71b8190d19660d4a27e9d6b41889cc92ecbfa # Parent 8a821809659d506890271fef6dd856b8c307878f fix error reporting bug diff -r 8a821809659d -r c1f71b8190d1 cfgparser.c --- a/cfgparser.c Mon Oct 22 19:04:09 2001 +0000 +++ b/cfgparser.c Mon Oct 22 20:22:25 2001 +0000 @@ -73,7 +73,8 @@ break; } if (i == nr_options) { - printf("invalid option:\n"); + if (parser_mode == CONFIG_FILE) + printf("invalid option:\n"); ret = ERR_NOT_AN_OPTION; goto out; }