mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 17:33:48 +01:00
Include current and latest known versions in unsupported db error
This commit is contained in:
parent
6d8c71ab36
commit
41272e9dff
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ func Run(log log.Logger, dialectName string, db *sql.DB) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if version > NumberOfUpgrades {
|
if version > NumberOfUpgrades {
|
||||||
return UnsupportedDatabaseVersion
|
return fmt.Errorf("%w: currently on v%d, latest known: v%d", UnsupportedDatabaseVersion, version, NumberOfUpgrades)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Infofln("Database currently on v%d, latest: v%d", version, NumberOfUpgrades)
|
log.Infofln("Database currently on v%d, latest: v%d", version, NumberOfUpgrades)
|
||||||
|
|
Loading…
Reference in a new issue