typo? Should not be console.error?