applications: Update ...ErrorIn -> ...ErrorInFunction

Avoids the clutter and maintenance effort associated with providing the
function signature string.
This commit is contained in:
Henry Weller
2015-11-10 17:53:31 +00:00
parent 735ce9cce7
commit e2ef006b91
271 changed files with 851 additions and 1559 deletions

View File

@ -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);
}