errorProcessor method

void errorProcessor(
  1. String line,
  2. NotificationProcessor? notificationProcessor
)
inherited

If the implementation of ServerBase captures an error stream, it can use this to forward the errors to listener and stderr if appropriate.

Implementation

void errorProcessor(
    String line, NotificationProcessor? notificationProcessor) {
  if (_stdioPassthrough) stderr.writeln(line);
  var trimmedLine = line.trim();
  listener?.errorMessage(trimmedLine);
}