Skip to content
Snippets Groups Projects
Commit 0c341354 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 fd52818d
No related branches found
No related tags found
1 merge request!60Merge foundation
...@@ -2,7 +2,7 @@ ...@@ -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 ...@@ -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);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment