Skip to content
Snippets Groups Projects
Commit 0ebfd350 authored by mattijs's avatar mattijs
Browse files

BUG: regIOobject : fix error message for files that cannot be found

parent e5e76840
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,21 @@ Foam::Istream& Foam::regIOobject::readStream()
}
else
{
// Search intelligently for file
objPath = filePath();
if (!objPath.size())
{
FatalIOError
(
"regIOobject::readStream()",
__FILE__,
__LINE__,
objectPath(),
0
) << "cannot find file"
<< exit(FatalIOError);
}
}
if (!(isPtr_ = objectStream(objPath)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment