aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-09-30 08:56:23 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-09-30 08:56:23 +0200
commit98b2b1d6c3a446fa7f4c15f62003bba643569116 (patch)
tree89519088c19a4b1900dabc2a25968fe5f119a903
parentbb82e599d60cd213d3f516f86052029193cb73df (diff)
downloaddabmod-98b2b1d6c3a446fa7f4c15f62003bba643569116.tar.gz
dabmod-98b2b1d6c3a446fa7f4c15f62003bba643569116.tar.bz2
dabmod-98b2b1d6c3a446fa7f4c15f62003bba643569116.zip
Improve could not bind UDP error
-rw-r--r--lib/Socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Socket.cpp b/lib/Socket.cpp
index bcffb07..2df1559 100644
--- a/lib/Socket.cpp
+++ b/lib/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));
}
}