Commit ecb05dd6 authored by Henry Weller's avatar Henry Weller
Browse files

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
parent fd24c05c
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment