Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Change display name of @truffle/error and remove its stack property #5787

Merged
merged 1 commit into from
Jan 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions packages/error/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
//Note: This class only exists for compatibility with some old Javascript
//stuff that avoided using Error directly for whatever reason. Eventually
//it should be eliminated.
class ExtendableError extends Error {
class TruffleError extends Error {
cds-amal marked this conversation as resolved.
Show resolved Hide resolved
constructor(message: string) {
super(message);
this.name = this.constructor.name;
this.stack = "";
}
}

export = ExtendableError;
export = TruffleError;