fix(cli): make sure errors passed to the storage are serialized correctly

This commit is contained in:
Joakim Carlstein 2024-01-26 11:25:34 +01:00 committed by Joakim Carlstein
parent f1b9098750
commit f2d4bb346e
3 changed files with 138 additions and 54 deletions

View file

@ -23,6 +23,7 @@ export class EmigrateError extends Error {
public code?: string,
) {
super(message, options);
this.name = this.constructor.name;
}
}