diff Core/RestApi/RestApiOutput.cpp @ 2954:d924f9bb61cc

taking advantage of details in OrthancException
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 Dec 2018 14:35:34 +0100
parents 9d277f8ad698
children 4e43e67f8ecf
line wrap: on
line diff
--- a/Core/RestApi/RestApiOutput.cpp	Mon Dec 03 11:49:39 2018 +0100
+++ b/Core/RestApi/RestApiOutput.cpp	Mon Dec 03 14:35:34 2018 +0100
@@ -100,8 +100,8 @@
       output_.SetContentType(MIME_XML_UTF8);
       output_.Answer(s);
 #else
-      LOG(ERROR) << "Orthanc was compiled without XML support";
-      throw OrthancException(ErrorCode_InternalError);
+      throw OrthancException(ErrorCode_InternalError,
+                             "Orthanc was compiled without XML support");
 #endif
     }
     else