Skip to content
Snippets Groups Projects
Commit 560c187b authored by Michael Davis's avatar Michael Davis
Browse files

[xrd_ssi] Handle USER_ERROR response in EosCta_Stub

parent 76dc6f22
No related branches found
No related tags found
No related merge requests found
......@@ -319,6 +319,7 @@ int exceptionThrowingMain(int argc, const char *const *const argv)
break;
case Response::RSP_ERR_PROTOBUF: throw XrdSsiPb::PbException(response.message_txt());
case Response::RSP_ERR_CTA: throw std::runtime_error(response.message_txt());
case Response::RSP_ERR_USER: throw std::runtime_error(response.message_txt());
// ... define other response types in the protocol buffer (e.g. user error)
default: throw XrdSsiPb::PbException("Invalid response type.");
}
......
......@@ -42,8 +42,8 @@ message Response {
RSP_INVALID = 0; //< Response type was not set
RSP_SUCCESS = 1; //< Request is valid and was accepted for processing
RSP_ERR_PROTOBUF = 2; //< Framework error caused by Google Protocol Buffers layer
RSP_ERR_USER = 3; //< User request is invalid
RSP_ERR_CTA = 4; //< Server error reported by CTA Frontend
RSP_ERR_CTA = 3; //< Server error reported by CTA Frontend
RSP_ERR_USER = 4; //< User request is invalid
}
ResponseType type = 1; //< Encode the type of this response
string message_txt = 2; //< Optional response message text
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment