SafeFatalIOError: Updated to print correct file and line number

Resolves bug-report http://bugs.openfoam.org/view.php?id=2102
Patch contributed by Mattijs Janssens
This commit is contained in:
Henry Weller
2016-05-26 17:40:37 +01:00
parent fd52818d3d
commit 0c34135438

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -125,8 +125,11 @@ void Foam::IOerror::SafeFatalIOError
{ {
if (JobInfo::constructed) if (JobInfo::constructed)
{ {
FatalIOErrorInFunction FatalIOError
( (
functionName,
sourceFileName,
sourceFileLineNumber,
ioStream ioStream
) << msg << Foam::exit(FatalIOError); ) << msg << Foam::exit(FatalIOError);
} }