Output error messages to the console