summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-09-30 08:57:34 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-09-30 08:57:34 +0200
commita1f10615cb36fe78f8af1e76fa91e0969ec3a954 (patch)
tree15eb99f7df87249071b98db460a9db0fab4df7c2 /contrib
parent5f6eacd1e3029cc2c925c7b43744ae903db71976 (diff)
downloadODR-AudioEnc-a1f10615cb36fe78f8af1e76fa91e0969ec3a954.tar.gz
ODR-AudioEnc-a1f10615cb36fe78f8af1e76fa91e0969ec3a954.tar.bz2
ODR-AudioEnc-a1f10615cb36fe78f8af1e76fa91e0969ec3a954.zip
Improve could not bind UDP error
Diffstat (limited to 'contrib')
-rw-r--r--contrib/Socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/Socket.cpp b/contrib/Socket.cpp
index bcffb07..2df1559 100644
--- a/contrib/Socket.cpp
+++ b/contrib/Socket.cpp
@@ -195,7 +195,7 @@ void UDPSocket::reinit(int port, const std::string& name)
freeaddrinfo(result);
if (rp == nullptr) {
- throw runtime_error("Could not bind");
+ throw runtime_error(string{"Could not bind to port "} + to_string(port));
}
}