diff --git a/src/OpenFOAM/db/error/IOerror.C b/src/OpenFOAM/db/error/IOerror.C index 859ed3246..76974fbf8 100644 --- a/src/OpenFOAM/db/error/IOerror.C +++ b/src/OpenFOAM/db/error/IOerror.C @@ -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); }