Salome HOME
Revert insufficient changes to avoid compilation error on Linux
[modules/shaper.git] / src / Config / Config_ModuleReader.cpp
index 2fd33f6cda947d90b50a1a065d6902ede4152340..dfd442b7e6012a70d6938d8fb800ffcb7d3de71c 100644 (file)
@@ -13,7 +13,7 @@
 #include <Config_Common.h>
 #include <Config_ModuleReader.h>
 #include <Config_FeatureReader.h>
-#include <Events_Error.h>
+#include <Events_InfoMessage.h>
 
 #include <libxml/parser.h>
 #include <libxml/tree.h>
@@ -70,9 +70,9 @@ void Config_ModuleReader::addFeature(const std::string& theFeatureName,
                                      const std::string& thePluginConfig)
 {
   if (myFeaturesInFiles.count(theFeatureName)) {
-    std::string anErrorMsg = "Can not register feature '" + theFeatureName + "' in plugin '"
-        + thePluginConfig + "'. There is a feature with the same ID.";
-    Events_Error::send(anErrorMsg);
+    std::string anErrorMsg = "Can not register feature '%1' in plugin '%2'."
+      " There is a feature with the same ID.";
+    Events_InfoMessage("Config_ModuleReader", anErrorMsg).arg(theFeatureName).arg(thePluginConfig).send();
     return;
   }
 
@@ -194,7 +194,7 @@ void Config_ModuleReader::loadScript(const std::string& theFileName)
       Py_XDECREF(pvalue);
       Py_XDECREF(ptraceback);
     }
-    Events_Error::send(anErrorMsg);
+    Events_InfoMessage("Config_ModuleReader", anErrorMsg).send();
   }
 
   /* release python thread */
@@ -229,7 +229,7 @@ void Config_ModuleReader::loadLibrary(const std::string& theLibName)
     anErrorMsg += ": " + std::string(dlerror());
     #endif
     std::cerr << anErrorMsg << std::endl;
-    Events_Error::send(anErrorMsg);
+    Events_InfoMessage("Config_ModuleReader", anErrorMsg).send();
   }
 }