feat(plugin-tools): improve error serialization and let each storage plugin serialize errors themselves
This commit is contained in:
parent
09181f284d
commit
a79f8e8e37
6 changed files with 29 additions and 10 deletions
5
.changeset/fast-olives-bathe.md
Normal file
5
.changeset/fast-olives-bathe.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@emigrate/plugin-tools': minor
|
||||
---
|
||||
|
||||
When serializing errors take all "own properties" into account to be able to serialize errors thrown by the `mysql2` package for instance without losing any information
|
||||
8
.changeset/few-hounds-retire.md
Normal file
8
.changeset/few-hounds-retire.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
'@emigrate/plugin-tools': patch
|
||||
'@emigrate/storage-fs': patch
|
||||
'@emigrate/mysql': patch
|
||||
'@emigrate/cli': patch
|
||||
---
|
||||
|
||||
Serialization of errors now happens inside storage plugins because it makes more sense and the types are easier to work with this way
|
||||
Loading…
Add table
Add a link
Reference in a new issue