mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-24 22:52:35 +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 {
|
||||
constructor () {
|
||||
super('AbortError')
|
||||
super('The operation was aborted')
|
||||
this.code = AbortError.code
|
||||
this.type = AbortError.type
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user