mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Handling entry not found.
This commit is contained in:
parent
15c2727a1d
commit
db1bf88934
@ -78,6 +78,11 @@ int Show::execute(int argc, char **argv)
|
||||
|
||||
Uuid uuid = Uuid::fromHex(args.at(1));
|
||||
Entry* entry = db->resolveEntry(uuid);
|
||||
if (entry == nullptr) {
|
||||
qCritical("No entry found with uuid %s", qPrintable(uuid.toHex()));
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
out << entry->password() << "\n";
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user