Proper error handling for reading databases.

This commit is contained in:
Felix Geyer 2012-01-06 20:03:13 +01:00
parent fea148803c
commit 007a901dba
9 changed files with 62 additions and 48 deletions

View file

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