Improve exception reporting in acquisition threads
Current log (when zmq_msg_recv
fails in the Dectris receiver):
[2024-10-24 20:56:13.408613][0x00186827][0x00007fa0f5ffb700][include/lima/hw/acquisition_thread_pipeline.hpp:87][error|acq][] Acquisition thread caught exception - Failed to receive STREAM2 image message
with
if (zmq_msg_recv(msg.get(), m_socket, 0) == -1)
LIMA_THROW_EXCEPTION(runtime_error("Failed to receive STREAM2 image message")
<< boost::errinfo_api_function("zmq_msg_recv") << boost::errinfo_errno(errno));
at the throwing site, the Boost.Exception framework should allow to print more info (like the errno atttached to the exception).
Edited by Samuel Debionne