feat(cli): include Emigrate error codes in error names

This commit is contained in:
Joakim Carlstein 2023-11-22 15:34:05 +01:00
parent 570bd1fa2b
commit c68c6f0490
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@emigrate/cli': minor
---
Include Emigrate error codes in the error names

View file

@ -9,6 +9,7 @@ export class EmigrateError extends Error {
options?: ErrorOptions,
) {
super(message, options);
this.name = `${this.name} [${this.code}]`;
}
}