dlLibraryTable: updated warning messaging

This commit is contained in:
Henry
2011-08-01 22:50:24 +01:00
parent 2d2d8d4081
commit 80ebb46a82

View File

@ -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;