writeErrorLine method
Writes an error message to the console, with newline automatically appended.
Implementation
void writeErrorLine(Object text) {
stderr.write(text);
// Even if we're in raw mode, we write '\n', since raw mode only applies
// to stdout
stderr.write('\n');
}