ENH: polyBoundaryMesh: improved error message

This commit is contained in:
mattijs
2011-09-22 22:00:29 +01:00
parent c3239ceec2
commit 1a54a0c81b

View File

@ -514,7 +514,8 @@ Foam::label Foam::polyBoundaryMesh::whichPatch(const label faceIndex) const
FatalErrorIn
(
"polyBoundaryMesh::whichPatch(const label faceIndex) const"
) << "given label greater than the number of geometric faces"
) << "given label " << faceIndex
<< " greater than the number of geometric faces " << mesh().nFaces()
<< abort(FatalError);
}