mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-25 23:32:33 +00:00
refactor: a better abort error message (#47)
Change to message as described here: https://heycam.github.io/webidl/#aborterror
This commit is contained in:
parent
4fd37bb616
commit
06ed59dc39
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
class AbortError extends Error {
|
class AbortError extends Error {
|
||||||
constructor () {
|
constructor () {
|
||||||
super('AbortError')
|
super('The operation was aborted')
|
||||||
this.code = AbortError.code
|
this.code = AbortError.code
|
||||||
this.type = AbortError.type
|
this.type = AbortError.type
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user