diff Core/Enumerations.cpp @ 1651:2e692c83e2f3

improved custom error login
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Sep 2015 17:29:39 +0200
parents 87c77b9b3679
children b80e76dd1d56
line wrap: on
line diff
--- a/Core/Enumerations.cpp	Fri Sep 25 16:47:05 2015 +0200
+++ b/Core/Enumerations.cpp	Fri Sep 25 17:29:39 2015 +0200
@@ -44,6 +44,11 @@
   // "Resources/GenerateErrorCodes.py"
   const char* EnumerationToString(ErrorCode error)
   {
+    if (error >= ErrorCode_START_PLUGINS)
+    {
+      return "Error encountered within some plugin";
+    }
+
     switch (error)
     {
       case ErrorCode_InternalError: