From 38ab7c3864bd8f93902ea77e9aa837e3ae3e9d37 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Tue, 31 Jan 2023 16:10:37 +0100 Subject: [PATCH] Improve error message --- src/StdMeshers/StdMeshers_ViscousLayers.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); } } }