Added  error details to errormessage