diff --git a/src/main/mesh/factory/Unstructured3DMesh.java b/src/main/mesh/factory/Unstructured3DMesh.java index 61aaf7c..adb4658 100644 --- a/src/main/mesh/factory/Unstructured3DMesh.java +++ b/src/main/mesh/factory/Unstructured3DMesh.java @@ -84,7 +84,8 @@ public Unstructured3DMesh(File meshFile, int numVars, Map new IllegalStateException("Couldn't locate boundary face in mesh.")); + .orElseThrow(() -> new IllegalStateException("Couldn't locate boundary face in mesh.\n" + + "The error occurred while reading '" + bndName + "' boundary.")); bndFace.right = Mesh.ghostCell(bndFace.left, bndFace); bndFaces.add(bndFace); }