- if ( GSS_ERROR(this->retVal) )
- {
- std::string errMsg;
- errMsg += "Cannot import name: ";
- errMsg += inputName.toString();
- throw GSSException(errMsg.c_str(), this->retVal, this->minor_status, inputNameType.toGss());
- }
+// if ( GSS_ERROR(this->retVal) )
+// {
+ JSONObject errors;
+ GSSDisplayStatus ds(retVal, minor_status, inputNameType.toGss());
+ errors.set("major_status_message", ds.getMajorMessage().c_str());
+ errors.set("minor_status_message", ds.getMinorMessage().c_str());
+ values->set("errors", errors);
+// }
+
+
+