mirror of https://github.com/pressly/goose.git
fix: wrap error in DownContext (#629)
parent
497acb407f
commit
8e088eb65b
2
down.go
2
down.go
|
@ -36,7 +36,7 @@ func DownContext(ctx context.Context, db *sql.DB, dir string, opts ...OptionsFun
|
|||
}
|
||||
current, err := migrations.Current(currentVersion)
|
||||
if err != nil {
|
||||
return fmt.Errorf("no migration %v", currentVersion)
|
||||
return fmt.Errorf("migration %v: %w", currentVersion, err)
|
||||
}
|
||||
return current.DownContext(ctx, db)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue