diff --git a/.changeset/three-ravens-cheat.md b/.changeset/three-ravens-cheat.md new file mode 100644 index 0000000..71001a3 --- /dev/null +++ b/.changeset/three-ravens-cheat.md @@ -0,0 +1,5 @@ +--- +'@emigrate/cli': minor +--- + +Include Emigrate error codes in the error names diff --git a/packages/cli/src/errors.ts b/packages/cli/src/errors.ts index 1644b1c..a6ecdba 100644 --- a/packages/cli/src/errors.ts +++ b/packages/cli/src/errors.ts @@ -9,6 +9,7 @@ export class EmigrateError extends Error { options?: ErrorOptions, ) { super(message, options); + this.name = `${this.name} [${this.code}]`; } }