HashTable: Correct error messages
Resolves bug-report http://bugs.openfoam.org/view.php?id=2106
This commit is contained in:
parent
b9fc25359a
commit
f823a0ceee
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue