lighthouse/beacon_node/lighthouse_network
Eitan Seri-Levi 1fcada8a32 Improve transport connection errors (#4540)
## Issue Addressed

#4538 

## Proposed Changes

add newtype wrapper around DialError that extracts error messages and logs them in a more readable format

## Additional Info

I was able to test Transport Dial Errors in the situation where a libp2p instance attempts to ping a nonexistent peer. That error message should look something like

`A transport level error has ocurred: Connection refused (os error 61)`

AgeManning mentioned we should try fetching only the most inner error (in situations where theres a nested error). I took a stab at implementing that

For non transport DialErrors, I wrote out the error messages explicitly (as per the docs). Could potentially clean things up here if thats not necessary


Co-authored-by: Age Manning <Age@AgeManning.com>
2023-08-10 00:10:09 +00:00
..
src Improve transport connection errors (#4540) 2023-08-10 00:10:09 +00:00
tests Shift networking configuration (#4426) 2023-08-03 01:51:47 +00:00
Cargo.toml upgrade to libp2p 0.52 (#4431) 2023-08-02 00:59:34 +00:00