libp2p / js-libp2p

The JavaScript Implementation of libp2p networking stack.
https://libp2p.github.io/js-libp2p/
Other
2.34k stars 447 forks source link

fix: error logging in firefox #2768

Closed achingbrain closed 1 month ago

achingbrain commented 1 month ago

Firefox has an error type with a .stack property that is an empty string, so guard on the various properties being empty before logging them.

Change checklist

achingbrain commented 1 month ago

Which error has the empty stack property?

I've seen it with errors emitted from WebTransport streams.