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 ++ ; } }
print the error and increment count