Mercurial > hg > orthanc
diff OrthancServer/ServerContext.cpp @ 1582:bd1889029cbb
encoding of exceptions
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 17:39:38 +0200 |
parents | 0c29ebe80ac9 |
children | eb8fbcf008b5 |
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp Tue Aug 25 16:18:37 2015 +0200 +++ b/OrthancServer/ServerContext.cpp Tue Aug 25 17:39:38 2015 +0200 @@ -330,7 +330,7 @@ Json::Reader reader; if (!reader.parse(s, result)) { - throw OrthancException("Corrupted JSON file"); + throw OrthancException(ErrorCode_CorruptedFile); } }