Fixed wrong error message on db check version query

This commit is contained in:
2025-02-25 15:21:13 +11:00
parent e2d66fc26d
commit f7f610d7ef

View File

@@ -39,7 +39,7 @@ func checkDBVersion(db *sql.DB, expectVer int) error {
ORDER BY version_id DESC LIMIT 1`
rows, err := db.Query(query)
if err != nil {
return errors.Wrap(err, "checkDBVersion")
return errors.Wrap(err, "db.Query")
}
defer rows.Close()
if rows.Next() {