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
5
.changeset/three-ravens-cheat.md
Normal file
5
.changeset/three-ravens-cheat.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@emigrate/cli': minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Include Emigrate error codes in the error names
|
||||||
|
|
@ -9,6 +9,7 @@ export class EmigrateError extends Error {
|
||||||
options?: ErrorOptions,
|
options?: ErrorOptions,
|
||||||
) {
|
) {
|
||||||
super(message, options);
|
super(message, options);
|
||||||
|
this.name = `${this.name} [${this.code}]`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue