diff --git a/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C b/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C index a520550c3f..94a1597d96 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C @@ -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); }