Branch: Tag:

2001-02-06

2001-02-06 15:23:36 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Somewhat improved error messages.

Rev: lib/modules/Tools.pmod/AutoDoc.pmod/DocParser.pmod:1.14

250:    array(string) attrnames = attributenames[keyword];    int attrcount = sizeof(attrnames || ({}) );    if (attrcount < sizeof(args)) -  parseError("@keyword with too many parameters"); +  parseError(sprintf("@%s with too many parameters", keyword));    for (int i = 0; i < sizeof(args); ++i)    res[attrnames[i]] = attributequote(args[i]);    return res;
451:    tokens = tokens[1..];    res += xmlContainerContents(keyword);    if (!(arrayp(tokens[0]) && tokens[0][0] == "end" + keyword)) -  parseError("@keyword without matching @endkeyword"); +  parseError(sprintf("@%s without matching @end%s", +  keyword, keyword));    res += closetag(keyword);       tokens = tokens[1..];