diff OrthancServer/DicomInstanceToStore.cpp @ 2955:bbfd95a0c429

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 Dec 2018 14:59:23 +0100
parents e5e3253a1164
children 4e43e67f8ecf
line wrap: on
line diff
--- a/OrthancServer/DicomInstanceToStore.cpp	Mon Dec 03 14:35:34 2018 +0100
+++ b/OrthancServer/DicomInstanceToStore.cpp	Mon Dec 03 14:59:23 2018 +0100
@@ -188,8 +188,8 @@
         if (!FromDcmtkBridge::SaveToMemoryBuffer(buffer_.GetContent(), 
                                                  *parsed_.GetContent().GetDcmtkObject().getDataset()))
         {
-          LOG(ERROR) << "Unable to serialize a DICOM file to a memory buffer";
-          throw OrthancException(ErrorCode_InternalError);
+          throw OrthancException(ErrorCode_InternalError,
+                                 "Unable to serialize a DICOM file to a memory buffer");
         }
       }