mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
dlLibraryTable: updated warning messaging
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user