``console.error`` should be used instead here to emit messages on a proper stream