mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: regIOobject : fix error message for files that cannot be found
This commit is contained in:
@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user