if (!m_errorOccurred && (w | Logger.TERMINAL) != 0) {
if (!m_errorOccurred && (w & Logger.TERMINAL) != 0) {
  private void errorInternal(ThreadState state, String message, int where) {    int w = where;    if (!m_logProcessStreams) {      w &= ~Logger.LOG;    }    if (w != 0) {      final int lineLength = state.formatMessage(message);      if ((w & Logger.LOG) != 0) {        m_errorWriter.write(state.m_outputLine, 0, lineLength);        m_errorWriter.flush();      }      if ((w & Logger.TERMINAL) != 0) {        s_stderrWriter.write(state.m_outputLine, 0, lineLength);        s_stderrWriter.flush();      }      final int summaryLength = 20;      final String summary =        message.length() > summaryLength ?        message.substring(0, summaryLength) + "..." : message;      outputInternal(state,                     "ERROR (\"" + summary +                     "\"), see error log for details",                     Logger.LOG);      if (!m_errorOccurred && (w | Logger.TERMINAL) != 0) {        m_processLogger.output(          "There were errors, see " + m_errorFile + " for details",          Logger.TERMINAL);        m_errorOccurred = true;      }    }  }