Salome HOME
SALOME_TESTS/Grids/smesh/3D_mesh_NETGEN_02/C1
[modules/smesh.git] / src / DriverSTL / DriverSTL_R_SMDS_Mesh.cxx
index ee4da4a6f295ffa4cf7582e054b2d69bab977518..53374c647c6ffea6f0963d284bf839153fb36939 100644 (file)
 
 #include "DriverSTL_R_SMDS_Mesh.h"
 
-#include "SMDS_Mesh.hxx"
-#include "SMDS_MeshElement.hxx"
-#include "SMDS_MeshNode.hxx"
-#include "SMESH_File.hxx"
-
-#include <gp_Pnt.hxx>
 #include <Basics_Utils.hxx>
 
+#include <gp_Pnt.hxx>
 #include <NCollection_DataMap.hxx>
 #include <Standard_NoMoreObject.hxx>
 
+#include "SMDS_Mesh.hxx"
+#include "SMDS_MeshElement.hxx"
+#include "SMDS_MeshNode.hxx"
+#include "SMESH_File.hxx"
+
 namespace
 {
   struct Hasher
@@ -114,6 +114,8 @@ Driver_Mesh::Status DriverSTL_R_SMDS_Mesh::Perform()
   SMESH_File file( myFile, /*open=*/false );
   if ( !file.open() ) {
     fprintf(stderr, ">> ERROR : cannot open file %s \n", myFile.c_str());
+    if ( file.error().empty() )
+      fprintf(stderr, ">> ERROR : %s \n", file.error().c_str());
     return DRS_FAIL;
   }