Branch: Tag:

2011-11-18

2011-11-18 19:19:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Tools.AutoDoc.DocParser: Improved diagnostics.

292:       protected void parseError(string s, mixed ... args) {    s = sprintf(s, @args); -  werror("DocParser error: %O\n", s); +  if (currentPosition->lastline) { +  werror("%s:%d..%d: DocParser error: %s\n", +  currentPosition->filename, currentPosition->firstline, +  currentPosition->lastline, s); +  } else { +  werror("%s:%d: DocParser error: %s\n", +  currentPosition->filename, currentPosition->firstline, s); +  }    throw (AutoDocError(currentPosition, "DocParser", s));    }