Mercurial > hg > orthanc
diff OrthancServer/OrthancConfiguration.cpp @ 2955:bbfd95a0c429
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Dec 2018 14:59:23 +0100 |
parents | 2e751f615e03 |
children | bfee0b9f3209 |
line wrap: on
line diff
--- a/OrthancServer/OrthancConfiguration.cpp Mon Dec 03 14:35:34 2018 +0100 +++ b/OrthancServer/OrthancConfiguration.cpp Mon Dec 03 14:59:23 2018 +0100 @@ -71,8 +71,8 @@ if (!reader.parse(content, tmp) || tmp.type() != Json::objectValue) { - LOG(ERROR) << "The configuration file does not follow the JSON syntax: " << path; - throw OrthancException(ErrorCode_BadJson); + throw OrthancException(ErrorCode_BadJson, + "The configuration file does not follow the JSON syntax: " + path.string()); } Toolbox::CopyJsonWithoutComments(config, tmp); @@ -90,9 +90,9 @@ { if (target.isMember(members[i])) { - LOG(ERROR) << "The configuration section \"" << members[i] - << "\" is defined in 2 different configuration files"; - throw OrthancException(ErrorCode_BadFileFormat); + throw OrthancException(ErrorCode_BadFileFormat, + "The configuration section \"" + members[i] + + "\" is defined in 2 different configuration files"); } else {