ssbc / multiserver

A single interface that can work with multiple protocols, and multiple transforms of those protocols (eg, security layer)
MIT License
104 stars 28 forks source link

Better error reporting #68

Closed staltz closed 3 years ago

staltz commented 3 years ago

When connecting to a go-ssb peer, the errors it returns are often stackless, err.stack === '', so this console.error is not helpful. I think if we use console.error(err) we should be safe because this will report the stack as well as other information, like err.message which may be very useful.

Concrete instance of this problem was found here: https://github.com/ssb-ngi-pointer/go-ssb-room/issues/190#issuecomment-825083641