diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-16 15:44:27 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-09-16 15:44:27 +0200 |
commit | 10c2b330c8831fe239848005cdb80efa1c222ad9 (patch) | |
tree | d5d41c7dc25925193104b83134c5f4b88957390c /src | |
parent | 119881f1643b16d8d4886dc3f7cc87911f9623f4 (diff) | |
download | dabmux-10c2b330c8831fe239848005cdb80efa1c222ad9.tar.gz dabmux-10c2b330c8831fe239848005cdb80efa1c222ad9.tar.bz2 dabmux-10c2b330c8831fe239848005cdb80efa1c222ad9.zip |
Improve TCP output error display
Diffstat (limited to 'src')
-rw-r--r-- | src/dabOutput/dabOutputTcp.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/dabOutput/dabOutputTcp.cpp b/src/dabOutput/dabOutputTcp.cpp index a8ae1bc..9a84937 100644 --- a/src/dabOutput/dabOutputTcp.cpp +++ b/src/dabOutput/dabOutputTcp.cpp @@ -193,7 +193,14 @@ int DabOutputTcp::Open(const char* name) if (success) { dispatcher_ = new TCPDataDispatcher(); - dispatcher_->start(port, address); + try { + dispatcher_->start(port, address); + } + catch (std::runtime_error& e) { + stringstream ss; + ss << "Caught error during socket open of TCP output " << name; + throw e; + } } else { stringstream ss; |