mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-22 08:11:25 -04:00
Proper error handling for reading databases.
This commit is contained in:
parent
fea148803c
commit
007a901dba
9 changed files with 62 additions and 48 deletions
|
@ -57,7 +57,7 @@ int main(int argc, char **argv)
|
|||
reader.setSaveXml(true);
|
||||
reader.readDatabase(&dbFile, key);
|
||||
|
||||
if (reader.error()) {
|
||||
if (reader.hasError()) {
|
||||
qCritical("Error while reading the database.");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue