Commit 80ebb46a authored by Henry's avatar Henry
Browse files

dlLibraryTable: updated warning messaging

parent 2d2d8d40
......@@ -57,13 +57,23 @@ bool Foam::dlLibraryTable::open
bool opened = dlLibraryTable::open(libName);
allOpened = opened && allOpened;
if (opened && (!tablePtr || tablePtr->size() <= nEntries))
if (!opened)
{
WarningIn
(
"dlLibraryTable::open"
"(const dictionary& dict, const word& libsEntry, "
"const TablePtr tablePtr)"
"(const dictionary&, const word&, "
"const TablePtr&)"
) << "Could not open library " << libName
<< endl << endl;
}
else if (debug && (!tablePtr || tablePtr->size() <= nEntries))
{
WarningIn
(
"dlLibraryTable::open"
"(const dictionary&, const word&, "
"const TablePtr&)"
) << "library " << libName
<< " did not introduce any new entries"
<< endl << endl;
......
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