Skip to content

Commit

Permalink
fix: add error name to custom err
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtPooki committed Aug 25, 2023
1 parent ebd1eb2 commit 5fe0bd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
* when remote pinning service returns delegates, if we can't connect to any, we won't be able to provide our CID's
* content to the service, and must abort.
*/
export class FailedToConnectToDelegates extends Error {}
export class FailedToConnectToDelegates extends Error {
constructor (message: string) {
super(message)
this.name = 'ERR_FAILED_TO_CONNECT_TO_DELEGATES'
}
}

0 comments on commit 5fe0bd9

Please sign in to comment.