Skip to content

Commit

Permalink
Little vault update
Browse files Browse the repository at this point in the history
  • Loading branch information
mrognor committed Feb 19, 2024
1 parent 1574373 commit b7fd5c2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Source/Vault.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b7fd5c2

Please sign in to comment.