diff Core/Enumerations.cpp @ 1703:b80e76dd1d56 db-changes

ordered-slices continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Oct 2015 16:10:35 +0200
parents 2e692c83e2f3
children d143db00a794
line wrap: on
line diff
--- a/Core/Enumerations.cpp	Mon Oct 12 17:49:23 2015 +0200
+++ b/Core/Enumerations.cpp	Tue Oct 13 16:10:35 2015 +0200
@@ -44,11 +44,6 @@
   // "Resources/GenerateErrorCodes.py"
   const char* EnumerationToString(ErrorCode error)
   {
-    if (error >= ErrorCode_START_PLUGINS)
-    {
-      return "Error encountered within some plugin";
-    }
-
     switch (error)
     {
       case ErrorCode_InternalError:
@@ -318,8 +313,21 @@
       case ErrorCode_DatabaseNotInitialized:
         return "Plugin trying to call the database during its initialization";
 
+      case ErrorCode_SslDisabled:
+        return "Orthanc has been built without SSL support";
+
+      case ErrorCode_CannotOrderSlices:
+        return "Unable to order the slices of the series";
+
       default:
-        return "Unknown error code";
+        if (error >= ErrorCode_START_PLUGINS)
+        {
+          return "Error encountered within some plugin";
+        }
+        else
+        {
+          return "Unknown error code";
+        }
     }
   }