connext/indra

[all] Error handling

Opened this issue · 0 comments

Expected Behavior

Current Behavior

Error handling is a mess, with the same error being thrown and logged at multiple layers of the stack. Additionally, the logging is overwhelming, making it tough to decipher what is going on in the case of multiple clients and a single node.

Possible Solution

We should create a custom error class and make sure all functions use this, it is bubbled up to the top most layer with all relevant context, and the logging is handled properly.