mirror of
https://github.com/pressly/goose.git
synced 2025-05-30 19:23:14 +00:00
fix: wrap error in DownContext (#629)
This commit is contained in:
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…
x
Reference in New Issue
Block a user