ENH: functionObjectList: format errors from FO reading. Fixes #575.

This commit is contained in:
mattijs
2017-10-30 11:43:12 +00:00
parent 4818b5808e
commit a79d2835f1
3 changed files with 26 additions and 13 deletions

View File

@ -788,8 +788,9 @@ bool Foam::functionObjectList::read()
}
catch (Foam::error& err)
{
WarningInFunction
<< "Caught FatalError " << err << nl << endl;
// Bit of trickery to get the original message
err.write(Warning, false);
InfoInFunction << nl << endl;
}
// Restore previous exception throwing state