feat(cli): include Emigrate error codes in error names
This commit is contained in:
parent
570bd1fa2b
commit
c68c6f0490
2 changed files with 6 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ export class EmigrateError extends Error {
|
|||
options?: ErrorOptions,
|
||||
) {
|
||||
super(message, options);
|
||||
this.name = `${this.name} [${this.code}]`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue