diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-09-30 08:58:03 +0200 | 
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-09-30 08:58:03 +0200 | 
| commit | cd1d272084dbc6273203e7a857446f397dd546c0 (patch) | |
| tree | 539962037459a93435514348276be7f86b47093f /lib/Socket.cpp | |
| parent | ebede8cf29badf88e8b06ac0c56fa49a2f8681e1 (diff) | |
| download | ODR-SourceCompanion-cd1d272084dbc6273203e7a857446f397dd546c0.tar.gz ODR-SourceCompanion-cd1d272084dbc6273203e7a857446f397dd546c0.tar.bz2 ODR-SourceCompanion-cd1d272084dbc6273203e7a857446f397dd546c0.zip | |
Improve could not bind UDP error
Diffstat (limited to 'lib/Socket.cpp')
| -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));      }  } | 
