From 10c2b330c8831fe239848005cdb80efa1c222ad9 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 16 Sep 2016 15:44:27 +0200 Subject: Improve TCP output error display --- src/dabOutput/dabOutputTcp.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3