Log errors to the console.