diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-09-30 08:56:06 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-09-30 08:56:06 +0200 |
commit | cfbb956903a3f424ced24bd20cbcc2b9727fb9a2 (patch) | |
tree | fd36e30f5e9169360b69fa382668eec85a26f234 /lib | |
parent | 9b18142f07d9d87bd9eced148a245b1d37bda29a (diff) | |
download | dabmux-cfbb956903a3f424ced24bd20cbcc2b9727fb9a2.tar.gz dabmux-cfbb956903a3f424ced24bd20cbcc2b9727fb9a2.tar.bz2 dabmux-cfbb956903a3f424ced24bd20cbcc2b9727fb9a2.zip |
Improve could not bind UDP error
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Socket.cpp | 2 |
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)); } } |