Changed to add error details

Changed to add error details