From 3ea5db22e2af7b4446528de78b4c51bc3cd0559b Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 21 Oct 1999 13:34:34 +0000 Subject: We were failing to diagnose bad command at paragraph start [originally from svn r242] --- error.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'error.c') diff --git a/error.c b/error.c index b7eb0d5..01451dd 100644 --- a/error.c +++ b/error.c @@ -79,6 +79,14 @@ static void do_error(int code, va_list ap) { sprintf(error, "expected no text after paragraph keyword"); flags = FILEPOS; break; + case err_badparatype: + wsp = va_arg(ap, wchar_t *); + sp = ustrtoa(wsp, auxbuf, sizeof(auxbuf)); + fpos = *va_arg(ap, filepos *); + sprintf(error, "command `%.200s' unrecognised at start of" + " paragraph", sp); + flags = FILEPOS; + break; case err_badmidcmd: wsp = va_arg(ap, wchar_t *); sp = ustrtoa(wsp, auxbuf, sizeof(auxbuf)); -- cgit v1.1