error messages for exceptions updated to show detailed cause