X-Git-Url: http://www.project-moonshot.org/gitweb/?p=gssweb.git;a=blobdiff_plain;f=json_gssapi%2Fsrc%2FGSSRequest.cpp;fp=json_gssapi%2Fsrc%2FGSSRequest.cpp;h=2de8b2e8c132d062531db29834b5924a874fbafc;hp=38e6793ff31a5c95618b9a20e463ffedf198ec74;hb=816da32161b0e55872cc939c6e68656664e47168;hpb=232ccf184c8a98a8792fa29bcd8e2a7ba2798a8f diff --git a/json_gssapi/src/GSSRequest.cpp b/json_gssapi/src/GSSRequest.cpp index 38e6793..2de8b2e 100644 --- a/json_gssapi/src/GSSRequest.cpp +++ b/json_gssapi/src/GSSRequest.cpp @@ -81,10 +81,13 @@ void GSSRequest::execute() cmd = NULL; } - JSONObject return_values; + JSONObject return_values, errors; + errors.set("major_status_message", e.major_status_message().c_str()); + errors.set("minor_status_message", e.minor_status_message().c_str()); + errors.set("what", e.what()); + return_values.set("errors", errors); return_values.set("major_status", e.getMajor()); return_values.set("minor_status", e.getMinor()); - return_values.set("what", e.what()); response.set("return_values", return_values); } catch (std::invalid_argument e)