From f823a0ceeee93f1b119d7bfb0f1ab22957e5df14 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 31 May 2016 17:18:23 +0100 Subject: [PATCH] HashTable: Correct error messages Resolves bug-report http://bugs.openfoam.org/view.php?id=2106 --- src/OpenFOAM/containers/HashTables/HashTable/HashTableI.H | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/OpenFOAM/containers/HashTables/HashTable/HashTableI.H b/src/OpenFOAM/containers/HashTables/HashTable/HashTableI.H index b3e3406da..83c8a394c 100644 --- a/src/OpenFOAM/containers/HashTables/HashTable/HashTableI.H +++ b/src/OpenFOAM/containers/HashTables/HashTable/HashTableI.H @@ -115,6 +115,7 @@ inline T& Foam::HashTable::operator[](const Key& key) if (iter == this->end()) { FatalErrorInFunction + << key << " not found in table. Valid entries: " << toc() << exit(FatalError); } @@ -131,6 +132,7 @@ inline const T& Foam::HashTable::operator[](const Key& key) const if (iter == this->cend()) { FatalErrorInFunction + << key << " not found in table. Valid entries: " << toc() << exit(FatalError); }