code: private void printError(String prefix, String msg) {
          if (nerrors < MaxErrors) {
              PrintWriter errWriter = getWriter(WriterKind.ERROR);
              printRawLines(errWriter, prefix + ": " + getText("javadoc.error") + " - " + msg);
              errWriter.flush();
              prompt();
              nerrors++;
          }
      }
docs: print the error and increment count