kdbx-extract: Print error message when opening the database failed.

This commit is contained in:
Felix Geyer 2012-04-22 22:33:41 +02:00
parent 67bf8e7b2a
commit ecc11d3207

View File

@ -66,7 +66,7 @@ int main(int argc, char **argv)
reader.readDatabase(&dbFile, key);
if (reader.hasError()) {
qCritical("Error while reading the database.");
qCritical("Error while reading the database:\n%s", qPrintable(reader.errorString()));
return 1;
}