1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore: log schema version when we error due to future db

This commit is contained in:
Anthony Bilinski 2019-10-24 00:33:57 -07:00
parent 746314baf2
commit 17bbe24ec5
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -196,7 +196,8 @@ void dbSchemaUpgrade(std::shared_ptr<RawDatabase>& db)
}
if (databaseSchemaVersion > SCHEMA_VERSION) {
qWarning() << "Database version is newer than we currently support. Please upgrade qTox";
qWarning().nospace() << "Database version (" << databaseSchemaVersion <<
") is newer than we currently support (" << SCHEMA_VERSION << "). Please upgrade qTox";
// We don't know what future versions have done, we have to disable db access until we re-upgrade
db.reset();
return;