Salome HOME
cout replaced by MESSAGE + clean up
[plugins/netgenplugin.git] / src / NETGENPlugin / NETGENPlugin_NETGEN_2D_ONLY.cxx
index 8e954f850e56de04342ba8a4d5e8637d84e1fe86..296ecc7f9a09ce2e89cf7d402a69a827b51c1d9b 100644 (file)
@@ -355,8 +355,8 @@ bool NETGENPlugin_NETGEN_2D_ONLY::RemoteCompute(SMESH_Mesh&         aMesh,
                                + output_mesh_file.string() +
                                " >> " + log_file.string();
 
-  std::cout << "Running command: " << std::endl;
-  std::cout << cmd << std::endl;
+  MESSAGE("Running command: ");
+  MESSAGE(cmd);
 
   // Writing command in log
   std::ofstream flog(log_file.string());
@@ -411,8 +411,8 @@ bool NETGENPlugin_NETGEN_2D_ONLY::RemoteCompute(SMESH_Mesh&         aMesh,
       }
     }
     if(nodeVec.at(nodeIndex) == nullptr){
-      std::cout << "Error could not identify id";
-      return false;
+      std::cerr << "Error could not identify id";
+      return true;
     }
   }