Commit 0ebfd350 authored by mattijs's avatar mattijs
Browse files

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

parent e5e76840
......@@ -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)))
......
Supports Markdown
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