diff OrthancServer/OrthancInitialization.cpp @ 1596:f2e3d030ea59

BadJson error code
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 Aug 2015 15:36:43 +0200
parents d73124f6b439
children 2dff2bdffdb8
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp	Thu Aug 27 14:58:58 2015 +0200
+++ b/OrthancServer/OrthancInitialization.cpp	Thu Aug 27 15:36:43 2015 +0200
@@ -137,8 +137,8 @@
       if (!reader.parse(content, tmp) ||
           tmp.type() != Json::objectValue)
       {
-        LOG(ERROR) << "Bad file format for this configuration file: " << path;
-        throw OrthancException(ErrorCode_BadFileFormat);
+        LOG(ERROR) << "The configuration file does not follow the JSON syntax: " << path;
+        throw OrthancException(ErrorCode_BadJson);
       }
 
       Toolbox::CopyJsonWithoutComments(config, tmp);