diff OrthancServer/OrthancInitialization.cpp @ 814:aeee9cc66dd9

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 May 2014 15:29:27 +0200
parents 8a36c947490c
children a811bdf8b8eb
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp	Thu May 08 15:15:55 2014 +0200
+++ b/OrthancServer/OrthancInitialization.cpp	Thu May 08 15:29:27 2014 +0200
@@ -532,7 +532,7 @@
 
     if (!configuration_->isMember("DicomModalities"))
     {
-      throw OrthancException(ErrorCode_BadFileFormat);
+      (*configuration_) ["DicomModalities"] = Json::objectValue;
     }
 
     Json::Value& modalities = (*configuration_) ["DicomModalities"];
@@ -575,7 +575,7 @@
 
     if (!configuration_->isMember("OrthancPeers"))
     {
-      throw OrthancException(ErrorCode_BadFileFormat);
+      (*configuration_) ["OrthancPeers"] = Json::objectValue;
     }
 
     Json::Value& peers = (*configuration_) ["OrthancPeers"];