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

[ssi] eoscta_stub reports archive file ID on stderr

parent e3a4946c
No related branches found
No related tags found
No related merge requests found
......@@ -310,10 +310,11 @@ int exceptionThrowingMain(int argc, const char *const *const argv)
{
using namespace cta::xrd;
case Response::RSP_SUCCESS: std::cout << response.message_txt() << std::endl; break;
case Response::RSP_SUCCESS: std::cout << response.message_txt() << std::endl;
if(isStderr) {
std::cerr << response.message_txt() << std::endl; break;
std::cerr << response.message_txt() << std::endl;
}
break;
case Response::RSP_ERR_PROTOBUF: throw XrdSsiPb::PbException(response.message_txt());
case Response::RSP_ERR_CTA: throw std::runtime_error(response.message_txt());
// ... define other response types in the protocol buffer (e.g. user error)
......
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