aboutsummaryrefslogtreecommitdiff
path: root/keyserver/storage/postgres/key_changes_table.go
diff options
context:
space:
mode:
Diffstat (limited to 'keyserver/storage/postgres/key_changes_table.go')
-rw-r--r--keyserver/storage/postgres/key_changes_table.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/keyserver/storage/postgres/key_changes_table.go b/keyserver/storage/postgres/key_changes_table.go
index e91b048d..c0e3429c 100644
--- a/keyserver/storage/postgres/key_changes_table.go
+++ b/keyserver/storage/postgres/key_changes_table.go
@@ -18,8 +18,7 @@ import (
"context"
"database/sql"
"errors"
-
- "github.com/sirupsen/logrus"
+ "fmt"
"github.com/matrix-org/dendrite/internal"
"github.com/matrix-org/dendrite/internal/sqlutil"
@@ -81,8 +80,7 @@ func executeMigration(ctx context.Context, db *sql.DB) error {
if err != nil {
if errors.Is(err, sql.ErrNoRows) { // migration was already executed, as the column was removed
if err = sqlutil.InsertMigration(ctx, db, migrationName); err != nil {
- // not a fatal error, log and continue
- logrus.WithError(err).Warnf("unable to manually insert migration '%s'", migrationName)
+ return fmt.Errorf("unable to manually insert migration '%s': %w", migrationName, err)
}
return nil
}