Skip to content

Commit

Permalink
fixup! legacymigrate: implement
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Mar 1, 2025
1 parent cee966e commit 551d5b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/mautrix-linkedin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ func main() {
expectedVersion := 10
var dbVersion int
err = m.DB.QueryRow(ctx, "SELECT version FROM version").Scan(&dbVersion)
if dbVersion < expectedVersion {
if err != nil {
log.Fatal().Err(err).Msg("Failed to get database version")
} else if dbVersion < expectedVersion {
log.Fatal().
Int("expected_version", expectedVersion).
Int("version", dbVersion).
Expand Down

0 comments on commit 551d5b7

Please sign in to comment.