From d8268296fb82a0395e1bceadfc1ab196f488f955 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 23 Mar 2003 00:52:01 +0000 Subject: better parsing errors --- openbox/cparse.l | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openbox/cparse.l') diff --git a/openbox/cparse.l b/openbox/cparse.l index 3f362668..fcc72f06 100644 --- a/openbox/cparse.l +++ b/openbox/cparse.l @@ -90,10 +90,10 @@ static void newline() if (!comment) { if (!haserror && entry.name != NULL && (signed)entry.type >= 0) { if (!config_set(entry.name, entry.type, entry.value)) - g_warning("Invalid option in '%s': '%s'\n", - yyfilename, entry.name); + g_warning("Parser error in '%s' on line %d\n", yyfilename, + yylineno); } else { - printf("Parser error in '%s' on line %d\n", yyfilename, yylineno); + g_warning("Parser error in '%s' on line %d", yyfilename, yylineno); } g_free(entry.name); entry.name = NULL; -- cgit v1.2.3