feat(up): improve error handling and presentation

This commit is contained in:
Joakim Carlstein 2023-11-22 15:47:17 +01:00
parent b57c86eaab
commit 8347fc1fa4
6 changed files with 83 additions and 29 deletions

View 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)

View file

@ -0,0 +1,5 @@
---
'@emigrate/cli': minor
---
Show any failed migration from the history in the "up" dry-run output

View 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.

View 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