Skip to content

Commit 6086c59

Browse files
committed
make errNoTCPHandler a trace error
1 parent 8b131cd commit 6086c59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vnet/network_stack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ type tcpHandlerResolver interface {
110110
//
111111
// Avoid using [trace.Wrap] on errNoTCPHandler where possible, this isn't an
112112
// unexpected error that should require the overhead of collecting a stack trace.
113-
var errNoTCPHandler = errors.New("no handler for address")
113+
var errNoTCPHandler = &trace.NotFoundError{Message: "no handler for address"}
114114

115115
// tcpHandlerSpec specifies a VNet TCP handler.
116116
type tcpHandlerSpec struct {

0 commit comments

Comments
 (0)