File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ pub enum NetworkError {
5353 error : io:: Error ,
5454 } ,
5555 /// IO error when creating the discovery service
56- #[ error( "failed to launch discovery service: {0 }" ) ]
57- Discovery ( io:: Error ) ,
56+ #[ error( "failed to launch discovery service on {0}: {1 }" ) ]
57+ Discovery ( SocketAddr , io:: Error ) ,
5858 /// An error occurred with discovery v5 node.
5959 #[ error( "discv5 error, {0}" ) ]
6060 Discv5Error ( #[ from] reth_discv5:: Error ) ,
@@ -71,8 +71,8 @@ impl NetworkError {
7171 match err. kind ( ) {
7272 ErrorKind :: AddrInUse => Self :: AddressAlreadyInUse { kind, error : err } ,
7373 _ => {
74- if let ServiceKind :: Discovery ( _ ) = kind {
75- return Self :: Discovery ( err)
74+ if let ServiceKind :: Discovery ( address ) = kind {
75+ return Self :: Discovery ( address , err)
7676 }
7777 Self :: Io ( err)
7878 }
You can’t perform that action at this time.
0 commit comments