Mercurial > hg > orthanc
comparison Core/HttpServer/MongooseServer.cpp @ 2133:15ae532af70e
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 10:21:37 +0100 |
parents | fabf7820d1f1 |
children | ddc75c6c712d |
comparison
equal
deleted
inserted
replaced
2132:a43708636890 | 2133:15ae532af70e |
---|---|
742 catch (std::runtime_error&) | 742 catch (std::runtime_error&) |
743 { | 743 { |
744 // Presumably an error while parsing the JSON body | 744 // Presumably an error while parsing the JSON body |
745 throw OrthancException(ErrorCode_BadRequest); | 745 throw OrthancException(ErrorCode_BadRequest); |
746 } | 746 } |
747 /*catch (std::bad_alloc&) | |
748 { | |
749 throw OrthancException(ErrorCode_NotEnoughMemory); | |
750 }*/ | |
747 | 751 |
748 if (!found) | 752 if (!found) |
749 { | 753 { |
750 throw OrthancException(ErrorCode_UnknownResource); | 754 throw OrthancException(ErrorCode_UnknownResource); |
751 } | 755 } |