Browse Source

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

reviewable/pr5911/r2
Anthony Bilinski 6 years ago
parent
commit
17bbe24ec5
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 3
      src/persistence/history.cpp

3
src/persistence/history.cpp

@ -196,7 +196,8 @@ void dbSchemaUpgrade(std::shared_ptr<RawDatabase>& db) @@ -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;

Loading…
Cancel
Save