Salome HOME
Improve error message
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Tue, 31 Jan 2023 15:10:37 +0000 (16:10 +0100)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Tue, 31 Jan 2023 15:10:37 +0000 (16:10 +0100)
src/StdMeshers/StdMeshers_ViscousLayers.cxx

index b35f5cf3d0b5a3c5faef29b83acee3cd88951a22..30166008a126f919ebe3640d0dedcf4660774675 100644 (file)
@@ -2431,7 +2431,14 @@ bool _ViscousBuilder::findFacesWithLayers(const bool onlyWith)
         break;
       }
       default:
-        return error("Not yet supported case", _sdVec[i]._index);
+        std::ostringstream msg;
+        msg << "Not yet supported case: vertex bounded by ";
+        msg << facesWOL.size();
+        msg << " faces without layer at coordinates (";
+        TopoDS_Vertex v = TopoDS::Vertex(vertex);
+        gp_Pnt p = BRep_Tool::Pnt(v);
+        msg << p.X() << ", " << p.Y() << ", " << p.Z() << ")";
+        return error(msg.str().c_str(), _sdVec[i]._index);
       }
     }
   }