Updated error message for inconsistent migrations

This commit is contained in:
Jack Philippi authored and Sylwia Szunejko committed 2024-08-26 08:59:43 +02:00
1 parent e7267922c4
commit 589b2aa06a
1 file changed
+1 -1
+1 -1
View File
@@ -128,7 +128,7 @@ func FromFS(ctx context.Context, session gocqlx.Session, f fs.FS) error {
for i := 0; i < len(dbm); i++ { for i := 0; i < len(dbm); i++ {
if dbm[i].Name != fm[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]) c, err := fileChecksum(f, fm[i])
if err != nil { if err != nil {