feat(up): improve error handling and presentation
This commit is contained in:
parent
b57c86eaab
commit
8347fc1fa4
6 changed files with 83 additions and 29 deletions
5
.changeset/angry-chicken-thank.md
Normal file
5
.changeset/angry-chicken-thank.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@emigrate/cli': patch
|
||||
---
|
||||
|
||||
Return a non zero exit code in case a migration fails (or for a dry-run if there's a failed migration in the history)
|
||||
5
.changeset/cold-points-rule.md
Normal file
5
.changeset/cold-points-rule.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@emigrate/cli': minor
|
||||
---
|
||||
|
||||
Show any failed migration from the history in the "up" dry-run output
|
||||
5
.changeset/giant-files-serve.md
Normal file
5
.changeset/giant-files-serve.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@emigrate/cli': patch
|
||||
---
|
||||
|
||||
Don't pass the EmigrateError instance to the storage for each failed migration but only the real cause. This is so that errors from failed migrations are not wrapped twice in EmigrateError instances when presenting failed migrations during an "up" dry-run or the "list" command.
|
||||
5
.changeset/happy-yaks-impress.md
Normal file
5
.changeset/happy-yaks-impress.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@emigrate/cli': minor
|
||||
---
|
||||
|
||||
Improve the looks of the "up" dry-run default output by showing pending migrations in a different color
|
||||
Loading…
Add table
Add a link
Reference in a new issue