Write errors to the console

Want to write an error to the console?

console.error("an error occurred", details);