mirror of
https://github.com/xataio/pgroll.git
synced 2024-09-11 05:45:48 +03:00
Add a sentinel error `ErrNoActiveMigration` for the case where there is no active migration. This improves the error strings presented to users by not mentioning SQL errors. **`pg-roll start` when there is a migration in progess:** ``` Error: a migration for schema "public" is already in progress ``` **`pg-roll rollback` when there is no migration in progress:** ``` Error: unable to get active migration: no active migration ``` **`pg-complete` when there is no active migration:** ``` Error: unable to get active migration: no active migration ``` |
||
---|---|---|
.. | ||
errors.go | ||
state.go |