getting error details