# HG changeset patch # User Alain Mazy # Date 1553182655 -3600 # Node ID 10e2b9f4162f916e5ca40fccc0c29236f27a6973 # Parent 98cd691359990bc2f211f30893902a7c34d3ebea more details in errors diff -r 98cd69135999 -r 10e2b9f4162f Core/DicomNetworking/DicomServer.cpp --- a/Core/DicomNetworking/DicomServer.cpp Thu Mar 21 12:04:39 2019 +0100 +++ b/Core/DicomNetworking/DicomServer.cpp Thu Mar 21 16:37:35 2019 +0100 @@ -328,7 +328,7 @@ if (cond.bad()) { throw OrthancException(ErrorCode_DicomPortInUse, - "cannot create network: " + std::string(cond.text())); + " (port = " + boost::lexical_cast(port_) + ") cannot create network: " + std::string(cond.text())); } continue_ = true; diff -r 98cd69135999 -r 10e2b9f4162f Core/HttpServer/HttpServer.cpp --- a/Core/HttpServer/HttpServer.cpp Thu Mar 21 12:04:39 2019 +0100 +++ b/Core/HttpServer/HttpServer.cpp Thu Mar 21 16:37:35 2019 +0100 @@ -1056,7 +1056,8 @@ if (!pimpl_->context_) { - throw OrthancException(ErrorCode_HttpPortInUse); + throw OrthancException(ErrorCode_HttpPortInUse, + " (port = " + boost::lexical_cast(port_) + ")"); } LOG(WARNING) << "HTTP server listening on port: " << GetPortNumber()