Use console.error for errors.