Updated error message for inconsistent migrations
This commit is contained in:
committed by
Sylwia Szunejko
parent
e7267922c4
commit
589b2aa06a
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user