aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-16 15:44:27 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-09-16 15:44:27 +0200
commit10c2b330c8831fe239848005cdb80efa1c222ad9 (patch)
treed5d41c7dc25925193104b83134c5f4b88957390c
parent119881f1643b16d8d4886dc3f7cc87911f9623f4 (diff)
downloaddabmux-10c2b330c8831fe239848005cdb80efa1c222ad9.tar.gz
dabmux-10c2b330c8831fe239848005cdb80efa1c222ad9.tar.bz2
dabmux-10c2b330c8831fe239848005cdb80efa1c222ad9.zip
Improve TCP output error display
-rw-r--r--src/dabOutput/dabOutputTcp.cpp9
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;