def _write_error(self, error):
        if self is None:
            return
        if self._user_stop:
            self._writer(self, '\nProcess stopped by the user',
                         self.app_msg_color)
        else:
            err = PROCESS_ERROR_STRING[error]
            self._writer(self, err % "Error: %s", self.stderr_color)
            _logger().warn('process error: %s', err)
        self._running = False
dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/pyqode/core/widgets/interactive.py/InteractiveConsole._write_error/swapped operands of `%`