-
- if (GSS_ERROR(this->retVal) )
- {
- std::string err("Error acquiring credential for user '");
- err += desired_name.toString();
- err += "'.";
- throw GSSException(err, this->retVal, this->minor_status);
- }
+
+ GSSDisplayStatus ds(retVal, minor_status, NULL);
+ errors.set("major_status_message", ds.getMajorMessage().c_str());
+ errors.set("minor_status_message", ds.getMinorMessage().c_str());
+ values->set("errors", errors);