0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

Show yyerror() parse errors on stderr on startup.

Noticed by: spb
This commit is contained in:
Jilles Tjoelker 2009-06-18 00:37:19 +02:00
parent e3c9ea195e
commit beccbe318c

View file

@ -1523,10 +1523,10 @@ yyerror(const char *msg)
strip_tabs(newlinebuf, linebuf, strlen(linebuf)); 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'", sendto_realops_snomask(SNO_GENERAL, L_ALL, "\"%s\", line %d: %s at '%s'",
conffilebuf, lineno + 1, msg, newlinebuf); conffilebuf, lineno + 1, msg, newlinebuf);
ilog(L_MAIN, "\"%s\", line %d: %s at '%s'", conffilebuf, lineno + 1, msg, newlinebuf);
} }
int int