Include error in console.log