diff 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
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp	Wed Nov 09 10:19:53 2016 +0100
+++ b/Core/HttpServer/MongooseServer.cpp	Wed Nov 09 10:21:37 2016 +0100
@@ -744,6 +744,10 @@
         // Presumably an error while parsing the JSON body
         throw OrthancException(ErrorCode_BadRequest);
       }
+      /*catch (std::bad_alloc&)
+      {
+        throw OrthancException(ErrorCode_NotEnoughMemory);
+        }*/
 
       if (!found)
       {