Skip to content

Commit

Permalink
refactor(QyuError): patch the error class's name property on each i…
Browse files Browse the repository at this point in the history
…nstance (#46)
  • Loading branch information
shtaif authored Feb 11, 2025
1 parent 38b8d36 commit 15ad6aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qyu-error.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class QyuError<CodeType extends string> extends Error {
name = 'QyuError';
code: CodeType | undefined;

constructor(code?: CodeType, message?: string) {
Expand Down

0 comments on commit 15ad6aa

Please sign in to comment.