COMP: consistent FatalError/FatalIOError exit types

STYLE: hostName() is short name, don't need parameter
This commit is contained in:
Mark Olesen
2021-11-30 14:03:31 +01:00
parent ed5dee71a4
commit e9054ec636
29 changed files with 45 additions and 45 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2015 OpenFOAM Foundation
Copyright (C) 2015-2020 OpenCFD Ltd.
Copyright (C) 2015-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -911,8 +911,8 @@ bool Foam::functionObjects::streamLineBase::read(const dictionary& dict)
if (dict.found("direction"))
{
FatalIOErrorInFunction(dict) << "Cannot specify both "
<< "\"trackForward\" and \"direction\""
FatalIOErrorInFunction(dict)
<< "Cannot specify both 'trackForward' and 'direction'" << nl
<< exit(FatalIOError);
}
}
@ -923,9 +923,9 @@ bool Foam::functionObjects::streamLineBase::read(const dictionary& dict)
dict.readEntry("lifeTime", lifeTime_);
if (lifeTime_ < 1)
{
FatalErrorInFunction
FatalIOErrorInFunction(dict)
<< "Illegal value " << lifeTime_ << " for lifeTime"
<< exit(FatalError);
<< exit(FatalIOError);
}