Replace console.log with console.log err