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