From 589b2aa06aeffdeb1c0db107495f030d97f3e8c6 Mon Sep 17 00:00:00 2001 From: Jack Philippi Date: Wed, 21 Aug 2024 16:53:39 +1000 Subject: [PATCH] Updated error message for inconsistent migrations --- migrate/migrate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrate/migrate.go b/migrate/migrate.go index 382a2dd..0b552c3 100644 --- a/migrate/migrate.go +++ b/migrate/migrate.go @@ -128,7 +128,7 @@ func FromFS(ctx context.Context, session gocqlx.Session, f fs.FS) error { for i := 0; i < len(dbm); i++ { if dbm[i].Name != fm[i] { - return fmt.Errorf("inconsistent migrations found, expected %q got %q at %d", fm[i], dbm[i].Name, i) + return fmt.Errorf("inconsistent migrations found, expected %q got %q at %d", dbm[i].Name, fm[i], i) } c, err := fileChecksum(f, fm[i]) if err != nil {