summaryrefslogtreecommitdiff
path: root/devices/zmq_forwarder
diff options
context:
space:
mode:
Diffstat (limited to 'devices/zmq_forwarder')
-rw-r--r--devices/zmq_forwarder/zmq_forwarder.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/devices/zmq_forwarder/zmq_forwarder.cpp b/devices/zmq_forwarder/zmq_forwarder.cpp
index 88a92d1..c28b461 100644
--- a/devices/zmq_forwarder/zmq_forwarder.cpp
+++ b/devices/zmq_forwarder/zmq_forwarder.cpp
@@ -113,7 +113,11 @@ int main (int argc, char *argv [])
n++;
}
- zmq::device (ZMQ_FORWARDER, in_socket, out_socket);
+ try {
+ zmq::device (ZMQ_FORWARDER, in_socket, out_socket);
+ } catch (zmq::error_t& e) {
+ fprintf(stderr, "device exit: %s\n", e.what());
+ }
return 0;
}