diff --git a/Source/Vault.cpp b/Source/Vault.cpp index fdc46fd..7acbfeb 100644 --- a/Source/Vault.cpp +++ b/Source/Vault.cpp @@ -240,7 +240,15 @@ namespace mvlt { RecursiveReadWriteMtx.ReadLock(); if (keys.empty()) - PrintContainerAsTable(RecordsSet, amountOfRecords, GetKeys()); + { + if (VaultMapStructure.Size() == 0) + { + std::cout << "Vault does not contain keys!" << std::endl; + std::cout << " (" << RecordsSet.size() << " records)" << std::endl; + } + else + PrintContainerAsTable(RecordsSet, amountOfRecords, GetKeys()); + } else PrintContainerAsTable(RecordsSet, amountOfRecords, keys); RecursiveReadWriteMtx.ReadUnlock();