HashTable: Correct error messages

Resolves bug-report http://bugs.openfoam.org/view.php?id=2106
This commit is contained in:
Henry Weller
2016-05-31 17:18:23 +01:00
parent b9fc25359a
commit f823a0ceee

View File

@ -115,6 +115,7 @@ inline T& Foam::HashTable<T, Key, Hash>::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<T, Key, Hash>::operator[](const Key& key) const
if (iter == this->cend())
{
FatalErrorInFunction
<< key << " not found in table. Valid entries: "
<< toc()
<< exit(FatalError);
}