Mercurial > hg > orthanc
diff OrthancServer/OrthancInitialization.cpp @ 1007:871c49c9b11d lua-scripting
lua routing is working
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 08 Jul 2014 17:35:00 +0200 |
parents | b3f6fb1130cd |
children | 0479d02c6778 |
line wrap: on
line diff
--- a/OrthancServer/OrthancInitialization.cpp Tue Jul 08 15:11:00 2014 +0200 +++ b/OrthancServer/OrthancInitialization.cpp Tue Jul 08 17:35:00 2014 +0200 @@ -288,7 +288,8 @@ if (modalities.type() != Json::objectValue || !modalities.isMember(name)) { - throw OrthancException(ErrorCode_BadFileFormat); + LOG(ERROR) << "No modality with symbolic name: " << name; + throw OrthancException(ErrorCode_InexistentItem); } try @@ -321,7 +322,8 @@ if (modalities.type() != Json::objectValue || !modalities.isMember(name)) { - throw OrthancException(ErrorCode_BadFileFormat); + LOG(ERROR) << "No peer with symbolic name: " << name; + throw OrthancException(ErrorCode_InexistentItem); } peer.FromJson(modalities[name]);