Skip to content

Commit

Permalink
Updated error message for inconsistent migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
jackphilippi authored and sylwiaszunejko committed Aug 26, 2024
1 parent e726792 commit 589b2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrate/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 589b2aa

Please sign in to comment.