BUG: using FatalIOErrorInLookup with incorrect exit type (fixes #1898)

- two occurrences where FatalIOErrorInLookup used exit(FatalError)
  instead of exit(FatalIOError), which caused the error messages
  to be lost.
This commit is contained in:
Mark Olesen
2020-10-23 09:28:07 +02:00
parent 3186bd87de
commit 3e4d9e15c0
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2011-2015 OpenFOAM Foundation Copyright (C) 2011-2015 OpenFOAM Foundation
Copyright (C) 2019 OpenCFD Ltd. Copyright (C) 2019-2020 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -49,7 +49,7 @@ Foam::autoPtr<Foam::ODESolver> Foam::ODESolver::New
"ODESolver", "ODESolver",
solverType, solverType,
*dictionaryConstructorTablePtr_ *dictionaryConstructorTablePtr_
) << exit(FatalError); ) << exit(FatalIOError);
} }
return autoPtr<ODESolver>(cstrIter()(odes, dict)); return autoPtr<ODESolver>(cstrIter()(odes, dict));

View File

@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2019 OpenCFD Ltd. Copyright (C) 2019-2020 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -68,7 +68,7 @@ Foam::surfaceInterpolationScheme<Type>::New
"discretisation", "discretisation",
schemeName, schemeName,
*MeshConstructorTablePtr_ *MeshConstructorTablePtr_
) << exit(FatalError); ) << exit(FatalIOError);
} }
return cstrIter()(mesh, schemeData); return cstrIter()(mesh, schemeData);