Use console.error instead of console.log.