Skip to content

Commit 04c7284

Browse files
committed
feat(swarm): add more error information for waitForDirectConn
1 parent 1a9a8de commit 04c7284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/net/swarm/swarm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ func (s *Swarm) NewStream(ctx context.Context, p peer.ID) (network.Stream, error
510510
var err error
511511
c, err = s.waitForDirectConn(ctx, p)
512512
if err != nil {
513-
return nil, err
513+
return nil, errors.New(fmt.Sprintf("wait for direct conn error: %s", err))
514514
}
515515
}
516516

0 commit comments

Comments
 (0)