Skip to content
Snippets Groups Projects
Commit bafb9b0f authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

add console error messages when ZeroMQ sending fails (should never happen actually)

parent 28e86a53
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,10 @@ namespace ChimeraTK {
info.sec = seconds;
info.usec = microseconds;
info.ident = _macroPulseNumberSource->accessData(0);
this->send(&info);
auto ret = this->send(&info);
if(ret) {
std::cout << "ZeroMQ sending failed!!!" << std::endl;
}
}
}
......
......@@ -95,7 +95,10 @@ namespace ChimeraTK {
info.sec = seconds;
info.usec = microseconds;
info.ident = _macroPulseNumberSource->accessData(0);
this->send(&info);
auto ret = this->send(&info);
if(ret) {
std::cout << "ZeroMQ sending failed!!!" << std::endl;
}
}
}
......
......@@ -170,7 +170,10 @@ namespace ChimeraTK {
else {
info.ident = 0;
}
this->send(&info);
auto ret = this->send(&info);
if(ret) {
std::cout << "ZeroMQ sending failed!!!" << std::endl;
}
}
}
......
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