From cfbb956903a3f424ced24bd20cbcc2b9727fb9a2 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 30 Sep 2024 08:56:06 +0200 Subject: Improve could not bind UDP error --- lib/Socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } -- cgit v1.2.3