ENH: report the function object name that causes the FatalError

This commit is contained in:
Mark Olesen
2018-06-19 19:14:16 +02:00
parent 0289582a75
commit 5cd6e4bed4
2 changed files with 4 additions and 1 deletions

View File

@ -827,7 +827,9 @@ bool Foam::functionObjectList::read()
{
// Bit of trickery to get the original message
err.write(Warning, false);
InfoInFunction << nl << endl;
InfoInFunction << nl
<< "--> while loading function object '" << key << "'"
<< nl << endl;
}
// Restore previous exception throwing state