Skip to content

Commit

Permalink
Better error message for invalid db file
Browse files Browse the repository at this point in the history
  • Loading branch information
louib authored and droidmonkey committed Nov 10, 2018
1 parent 82bf00d commit 156b480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,11 @@ Database* Database::openDatabaseFile(const QString& fileName, QSharedPointer<con

QFile dbFile(fileName);
if (!dbFile.exists()) {
qCritical("File %s does not exist.", qPrintable(fileName));
qCritical("Database file %s does not exist.", qPrintable(fileName));
return nullptr;
}
if (!dbFile.open(QIODevice::ReadOnly)) {
qCritical("Unable to open file %s.", qPrintable(fileName));
qCritical("Unable to open database file %s.", qPrintable(fileName));
return nullptr;
}

Expand Down

0 comments on commit 156b480

Please sign in to comment.