Commit 7d552144 authored by Mark Olesen's avatar Mark Olesen

ENH: use FatalErrorInLookup macros (#1362)

parent 44ba0bc3
...@@ -180,12 +180,13 @@ Foam::functionObjects::runTimePostPro::pathline::New ...@@ -180,12 +180,13 @@ Foam::functionObjects::runTimePostPro::pathline::New
if (!cstrIter.found()) if (!cstrIter.found())
{ {
FatalErrorInFunction FatalIOErrorInLookup
<< "Unknown pathline type " (
<< pathlineType << nl << nl dict,
<< "Valid pathline types :" << endl "pathline",
<< dictionaryConstructorTablePtr_->sortedToc() pathlineType,
<< exit(FatalError); *dictionaryConstructorTablePtr_
) << exit(FatalIOError);
} }
return autoPtr<pathline>(cstrIter()(parent, dict, colours)); return autoPtr<pathline>(cstrIter()(parent, dict, colours));
......
...@@ -143,12 +143,13 @@ Foam::functionObjects::runTimePostPro::pointData::New ...@@ -143,12 +143,13 @@ Foam::functionObjects::runTimePostPro::pointData::New
if (!cstrIter.found()) if (!cstrIter.found())
{ {
FatalErrorInFunction FatalIOErrorInLookup
<< "Unknown pointData type " (
<< pointDataType << nl << nl dict,
<< "Valid pointData types :" << endl "pointData",
<< dictionaryConstructorTablePtr_->sortedToc() pointDataType,
<< exit(FatalError); *dictionaryConstructorTablePtr_
) << exit(FatalIOError);
} }
return autoPtr<pointData>(cstrIter()(parent, dict, colours)); return autoPtr<pointData>(cstrIter()(parent, dict, colours));
......
...@@ -256,12 +256,13 @@ Foam::functionObjects::runTimePostPro::surface::New ...@@ -256,12 +256,13 @@ Foam::functionObjects::runTimePostPro::surface::New
if (!cstrIter.found()) if (!cstrIter.found())
{ {
FatalErrorInFunction FatalIOErrorInLookup
<< "Unknown surface type " (
<< surfaceType << nl << nl dict,
<< "Valid surface types :" << endl "surface",
<< dictionaryConstructorTablePtr_->sortedToc() surfaceType,
<< exit(FatalError); *dictionaryConstructorTablePtr_
) << exit(FatalIOError);
} }
return autoPtr<surface>(cstrIter()(parent, dict, colours)); return autoPtr<surface>(cstrIter()(parent, dict, colours));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment