diff OrthancServer/DatabaseWrapper.cpp @ 2955:bbfd95a0c429

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 Dec 2018 14:59:23 +0100
parents bb63068844ae
children 4e43e67f8ecf
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapper.cpp	Mon Dec 03 14:35:34 2018 +0100
+++ b/OrthancServer/DatabaseWrapper.cpp	Mon Dec 03 14:59:23 2018 +0100
@@ -366,8 +366,8 @@
 
     if (!ok)
     {
-      LOG(ERROR) << "Incompatible version of the Orthanc database: " << tmp;
-      throw OrthancException(ErrorCode_IncompatibleDatabaseVersion);
+      throw OrthancException(ErrorCode_IncompatibleDatabaseVersion,
+                             "Incompatible version of the Orthanc database: " + tmp);
     }
 
     signalRemainingAncestor_ = new Internals::SignalRemainingAncestor;