From fe86a70d9aeabc2120e2d2a11d995c19ef74f3f8 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Thu, 18 Jun 2009 00:37:19 +0200 Subject: [PATCH] Show yyerror() parse errors on stderr on startup. Noticed by: spb --- src/s_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_conf.c b/src/s_conf.c index fcf83bf..94e8669 100644 --- a/src/s_conf.c +++ b/src/s_conf.c @@ -1523,10 +1523,10 @@ yyerror(const char *msg) strip_tabs(newlinebuf, linebuf, strlen(linebuf)); + ierror("\"%s\", line %d: %s at '%s'", conffilebuf, lineno + 1, msg, newlinebuf); sendto_realops_snomask(SNO_GENERAL, L_ALL, "\"%s\", line %d: %s at '%s'", conffilebuf, lineno + 1, msg, newlinebuf); - ilog(L_MAIN, "\"%s\", line %d: %s at '%s'", conffilebuf, lineno + 1, msg, newlinebuf); } int