mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
applications: Update ...ErrorIn -> ...ErrorInFunction
Avoids the clutter and maintenance effort associated with providing the function signature string.
This commit is contained in:
@ -174,12 +174,8 @@ void writeVTK
|
||||
}
|
||||
else
|
||||
{
|
||||
WarningIn
|
||||
(
|
||||
"void writeVTK"
|
||||
"(const polyMesh& mesh, const topoSet& currentSet,"
|
||||
"const fileName& vtkName)"
|
||||
) << "Don't know how to handle set of type " << currentSet.type()
|
||||
WarningInFunction
|
||||
<< "Don't know how to handle set of type " << currentSet.type()
|
||||
<< endl;
|
||||
}
|
||||
}
|
||||
@ -690,7 +686,7 @@ polyMesh::readUpdateState meshReadUpdate(polyMesh& mesh)
|
||||
}
|
||||
default:
|
||||
{
|
||||
FatalErrorIn("meshReadUpdate(polyMesh&)")
|
||||
FatalErrorInFunction
|
||||
<< "Illegal mesh update state "
|
||||
<< stat << abort(FatalError);
|
||||
break;
|
||||
@ -770,11 +766,8 @@ commandStatus parseType
|
||||
}
|
||||
else
|
||||
{
|
||||
SeriousErrorIn
|
||||
(
|
||||
"commandStatus parseType(Time&, polyMesh&, const word&"
|
||||
", IStringStream&)"
|
||||
) << "Illegal command " << setType << endl
|
||||
SeriousErrorInFunction
|
||||
<< "Illegal command " << setType << endl
|
||||
<< "Should be one of 'help', 'list', 'time' or a set type :"
|
||||
<< " 'cellSet', 'faceSet', 'pointSet', 'faceZoneSet'"
|
||||
<< endl;
|
||||
@ -839,7 +832,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (loop && !batch)
|
||||
{
|
||||
FatalErrorIn(args.executable())
|
||||
FatalErrorInFunction
|
||||
<< "Can only loop in batch mode."
|
||||
<< exit(FatalError);
|
||||
}
|
||||
@ -889,7 +882,7 @@ int main(int argc, char *argv[])
|
||||
// we cannot handle .gz files
|
||||
if (!isFile(batchFile, false))
|
||||
{
|
||||
FatalErrorIn(args.executable())
|
||||
FatalErrorInFunction
|
||||
<< "Cannot open file " << batchFile << exit(FatalError);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user