changeset 2380:c1f71b8190d1

fix error reporting bug
author szabi
date Mon, 22 Oct 2001 20:22:25 +0000
parents 8a821809659d
children 448559791c0e
files cfgparser.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}