JavaScript Error Registro

console.error(error.message);

or simply 
console.log(error.message);
aashish-cd