Skip to content
Snippets Groups Projects
Commit 80ebb46a authored by Henry's avatar Henry
Browse files

dlLibraryTable: updated warning messaging

parent 2d2d8d40
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment