changeset 383:b5faee100a74

more specific error message
author Alain Mazy <alain@mazy.be>
date Sun, 02 Feb 2020 12:03:54 +0100
parents dfec31bf370f
children 4c84d96391b6
files Plugin/WadoRsRetrieveFrames.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Plugin/WadoRsRetrieveFrames.cpp	Thu Jan 23 16:05:31 2020 +0100
+++ b/Plugin/WadoRsRetrieveFrames.cpp	Sun Feb 02 12:03:54 2020 +0100
@@ -83,7 +83,7 @@
 
       if (tokens[0] != "multipart/related")
       {
-        throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
+        throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange, "expecting 'Accept: multipart/related' HTTP header");
       }
 
       std::string type("application/octet-stream");