mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: use consistent naming when toggling exception throwing on/off
This commit is contained in:
@ -144,8 +144,8 @@ unsigned testParsing
|
||||
string errMsg;
|
||||
|
||||
// Expect some failures
|
||||
const bool prev1 = FatalError.throwExceptions();
|
||||
const bool prev2 = FatalIOError.throwExceptions();
|
||||
const bool oldThrowingError = FatalError.throwing(true);
|
||||
const bool oldThrowingIOErr = FatalIOError.throwing(true);
|
||||
|
||||
for (const std::pair<bool, std::string>& test : tests)
|
||||
{
|
||||
@ -169,8 +169,8 @@ unsigned testParsing
|
||||
hadParsingError(test, result, errMsg);
|
||||
}
|
||||
|
||||
FatalError.throwExceptions(prev1);
|
||||
FatalIOError.throwExceptions(prev2);
|
||||
FatalError.throwing(oldThrowingError);
|
||||
FatalIOError.throwing(oldThrowingIOErr);
|
||||
|
||||
return nFail;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user