Skip to content

Commit

Permalink
chore: fix property used to get error name
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Jul 12, 2023
1 parent ca78c36 commit 2429961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class IpldExploreError extends Error {
* t('NameOfErrorClassThatExtendsIpldExploreError')
*/
toString (t: TFunction<'translation', undefined, 'translation'>): string {
return t(this.constructor.name, this.options)
return t(this.name, this.options)
}
}

Expand Down

0 comments on commit 2429961

Please sign in to comment.