updating error message to display exception.