changeset 4154:6e7c842679ec

improved log
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 23 Aug 2020 12:40:04 +0200
parents a4664f169cd7
children 06baa6bf187a
files OrthancServer/Sources/ServerJobs/OrthancPeerStoreJob.cpp
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerJobs/OrthancPeerStoreJob.cpp	Sun Aug 23 12:13:27 2020 +0200
+++ b/OrthancServer/Sources/ServerJobs/OrthancPeerStoreJob.cpp	Sun Aug 23 12:40:04 2020 +0200
@@ -119,6 +119,13 @@
     }
     else
     {
+      if (compress_)
+      {
+        LOG(ERROR) << "Cannot send DICOM over HTTP using \"gzip\" as "
+                   << "\"Content-Encoding\": Make sure that the version "
+                   << "of the remote Orthanc server is >= 1.6.0";
+      }
+
       throw OrthancException(ErrorCode_NetworkProtocol);
     }
   }