For errors, I swapped the console.log() for console.error().