diff Core/DicomNetworking/DicomServer.cpp @ 3330:10e2b9f4162f

more details in errors
author Alain Mazy <alain@mazy.be>
date Thu, 21 Mar 2019 16:37:35 +0100
parents 4e43e67f8ecf
children e327b44780bb 94f4a18a79cc
line wrap: on
line diff
--- 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<std::string>(port_) + ") cannot create network: " + std::string(cond.text()));
     }
 
     continue_ = true;