Salome HOME
Added unit-test that checks the issue #1379 is fixed
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_ExportFeature.cpp
index 02b31988bc8193e0de6245ee6ef8bbbb1cc6519b..407887dbce81cf2c0a194d64600a48fc6501dcb0 100644 (file)
@@ -54,6 +54,8 @@
 #include <ModelAPI_Session.h>
 #include <ModelAPI_Validator.h>
 
+#include <Events_InfoMessage.h>
+
 #include <XAO_Group.hxx>
 #include <XAO_Field.hxx>
 #include <XAO_Xao.hxx>
@@ -301,7 +303,7 @@ void ExchangePlugin_ExportFeature::exportXAO(const std::string& theFileName)
       msg += e.what();
       msg += "\n";
       msg += "=> skipping this group from XAO export.";
-      setError(msg);
+      Events_InfoMessage("ExportFeature", msg, this).send();
       aXao.removeGroup(aXaoGroup);
     }
   }
@@ -396,7 +398,7 @@ void ExchangePlugin_ExportFeature::exportXAO(const std::string& theFileName)
       msg += e.what();
       msg += "\n";
       msg += "=> skipping this field from XAO export.";
-      setError(msg);
+      Events_InfoMessage("ExportFeature", msg, this).send();
       aXao.removeField(aXaoField);
     }
   }