From: Christophe Bourcier Date: Tue, 31 Jan 2023 15:10:37 +0000 (+0100) Subject: Improve error message X-Git-Tag: V9_11_0a1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=38ab7c3864bd8f93902ea77e9aa837e3ae3e9d37;p=modules%2Fsmesh.git Improve error message --- diff --git a/src/StdMeshers/StdMeshers_ViscousLayers.cxx b/src/StdMeshers/StdMeshers_ViscousLayers.cxx index b35f5cf3d..30166008a 100644 --- a/src/StdMeshers/StdMeshers_ViscousLayers.cxx +++ b/src/StdMeshers/StdMeshers_ViscousLayers.cxx @@ -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); } } }