diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-04-19 14:10:24 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-04-19 14:10:24 +0200 |
commit | 7cba56319b6855b189c80323f2150657901e6442 (patch) | |
tree | 397d370f73cc5fff6083f20599e901e84337380d /src/dabInputZmq.cpp | |
parent | 2ef42b865cd88f274958bde780c2731e0434eb34 (diff) | |
download | dabmux-7cba56319b6855b189c80323f2150657901e6442.tar.gz dabmux-7cba56319b6855b189c80323f2150657901e6442.tar.bz2 dabmux-7cba56319b6855b189c80323f2150657901e6442.zip |
Report zmq error in exception
Diffstat (limited to 'src/dabInputZmq.cpp')
-rw-r--r-- | src/dabInputZmq.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/dabInputZmq.cpp b/src/dabInputZmq.cpp index 956481c..9955fe3 100644 --- a/src/dabInputZmq.cpp +++ b/src/dabInputZmq.cpp @@ -158,7 +158,8 @@ void DabInputZmqBase::rebind() } catch (zmq::error_t& err) { std::ostringstream os; - os << "ZMQ set encoder key for input " << m_name << " failed"; + os << "ZMQ set encoder key for input " << m_name << " failed" << + err.what(); throw std::runtime_error(os.str()); } @@ -168,7 +169,8 @@ void DabInputZmqBase::rebind() } catch (zmq::error_t& err) { std::ostringstream os; - os << "ZMQ set public key for input " << m_name << " failed"; + os << "ZMQ set public key for input " << m_name << " failed" << + err.what(); throw std::runtime_error(os.str()); } @@ -178,7 +180,8 @@ void DabInputZmqBase::rebind() } catch (zmq::error_t& err) { std::ostringstream os; - os << "ZMQ set secret key for input " << m_name << " failed"; + os << "ZMQ set secret key for input " << m_name << " failed" << + err.what(); throw std::runtime_error(os.str()); } } @@ -192,7 +195,8 @@ void DabInputZmqBase::rebind() } catch (zmq::error_t& err) { std::ostringstream os; - os << "ZMQ remove keys for input " << m_name << " failed"; + os << "ZMQ remove keys for input " << m_name << " failed: " << + err.what(); throw std::runtime_error(os.str()); } @@ -204,7 +208,8 @@ void DabInputZmqBase::rebind() } catch (zmq::error_t& err) { std::ostringstream os; - os << "ZMQ bind for input " << m_name << " failed"; + os << "ZMQ bind for input " << m_name << " failed" << + err.what(); throw std::runtime_error(os.str()); } @@ -215,7 +220,8 @@ void DabInputZmqBase::rebind() } catch (zmq::error_t& err) { std::ostringstream os; - os << "ZMQ set socket options for input " << m_name << " failed"; + os << "ZMQ set socket options for input " << m_name << " failed" << + err.what(); throw std::runtime_error(os.str()); } } |