Skip to content
Snippets Groups Projects
Commit d8f39a93 authored by mattijs's avatar mattijs
Browse files

improved error message

parent ee033487
Branches
Tags
No related merge requests found
......@@ -157,14 +157,14 @@ void testSortedEdgeFaces(const triSurface& surf)
{
if (findIndex(sortMyFaces, myFaces[i]) == -1)
{
FatalErrorIn("testSortedEdgeFaces") << abort(FatalError);
FatalErrorIn("testSortedEdgeFaces(..)") << abort(FatalError);
}
}
forAll(sortMyFaces, i)
{
if (findIndex(myFaces, sortMyFaces[i]) == -1)
{
FatalErrorIn("testSortedEdgeFaces") << abort(FatalError);
FatalErrorIn("testSortedEdgeFaces(..)") << abort(FatalError);
}
}
}
......@@ -304,7 +304,7 @@ label findEdge
}
FatalErrorIn("findEdge") << "Cannot find edge with labels " << v0
FatalErrorIn("findEdge(..)") << "Cannot find edge with labels " << v0
<< ' ' << v1 << " in candidates " << edgeLabels
<< " with vertices:" << UIndirectList<edge>(surf.edges(), edgeLabels)()
<< abort(FatalError);
......@@ -343,7 +343,7 @@ label otherEdge
}
}
FatalErrorIn("otherEdge") << "Cannot find other edge on face " << faceI
FatalErrorIn("otherEdge(..)") << "Cannot find other edge on face " << faceI
<< " verts:" << surf.localPoints()[faceI]
<< " connected to point " << pointI
<< " faceEdges:" << UIndirectList<edge>(surf.edges(), fEdges)()
......@@ -409,7 +409,9 @@ void walkSplitLine
if (eFaces.size() != 2)
{
FatalErrorIn("walkSplitPoint") << abort(FatalError);
FatalErrorIn("walkSplitPoint(..)")
<< "Can only handle edges with 2 or 4 edges for now."
<< abort(FatalError);
}
if (eFaces[0] == faceI)
......@@ -422,7 +424,7 @@ void walkSplitLine
}
else
{
FatalErrorIn("walkSplitPoint") << abort(FatalError);
FatalErrorIn("walkSplitPoint(..)") << abort(FatalError);
}
}
while (true);
......@@ -547,7 +549,7 @@ void calcPointVecs
surf.write("errorSurf.ftr");
FatalErrorIn("calcPointVecs")
FatalErrorIn("calcPointVecs(..)")
<< "Cannot find two faces using border edge " << edgeI
<< " verts:" << edges[edgeI]
<< " eFaces:" << eFaces << endl
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment