ChainSafe / js-libp2p-yamux

Typescript implementation of Yamux
Other
10 stars 8 forks source link

Align error codes #4

Closed achingbrain closed 1 year ago

achingbrain commented 1 year ago

@libp2p/mplex throws errors with a few different codes, all of which have the prefix ERR_MPLEX_. To make detecting error conditions consistent between mplex and yamux I propose removing the MPLEX_ part of the prefix and that yamux should throw errors with the same code.

The codes are:

achingbrain commented 1 year ago

We should probably split that last one into two error codes 😆

achingbrain commented 1 year ago

This has been done 🎉