diff CodeAnalysis/FunctionBody.mustache @ 77:e7ff5efb100d

Custom exception "orthanc.OrthancException" is raised instead of "ValueError"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 09 Aug 2021 18:16:42 +0200
parents cbfc72a53970
children 8382c7dea471
line wrap: on
line diff
--- a/CodeAnalysis/FunctionBody.mustache	Mon Aug 09 17:00:53 2021 +0200
+++ b/CodeAnalysis/FunctionBody.mustache	Mon Aug 09 18:16:42 2021 +0200
@@ -90,7 +90,7 @@
   }
   else
   {
-    PythonLock::RaiseException(OrthancPluginErrorCode_InternalError);
+    PythonLock::RaiseException(code);
     return NULL;  
   }
 {{/return_bytes}}