Prints an error with the given text - to the console, if its available.
void error(const string &text)