Skip to content

Commit e096192

Browse files
committed
bridgev2/legacymigrate: fix error message for other db upgrade
1 parent 31a68cb commit e096192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bridgev2/matrix/mxmain/legacymigrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (br *BridgeMain) LegacyMigrateWithAnotherUpgrader(renameTablesQuery, copyDa
6262
if err != nil {
6363
return err
6464
} else if otherUpgradesTo < otherNewVersion || otherCompat > otherNewVersion {
65-
return fmt.Errorf("unexpected new database version for %s (%d/c:%d, expected %d)", otherTableName, otherUpgradesTo, otherCompat, newDBVersion)
65+
return fmt.Errorf("unexpected new database version for %s (%d/c:%d, expected %d)", otherTableName, otherUpgradesTo, otherCompat, otherNewVersion)
6666
}
6767
_, err = br.DB.Exec(ctx, fmt.Sprintf("INSERT INTO %s (version, compat) VALUES ($1, $2)", otherTableName), otherUpgradesTo, otherCompat)
6868
if err != nil {

0 commit comments

Comments
 (0)