Skip to content

Commit

Permalink
make errNoTCPHandler a trace error
Browse files Browse the repository at this point in the history
  • Loading branch information
nklaassen committed Jan 23, 2025
1 parent f63bbe8 commit 5486ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vnet/network_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ type tcpHandlerResolver interface {
//
// Avoid using [trace.Wrap] on errNoTCPHandler where possible, this isn't an
// unexpected error that should require the overhead of collecting a stack trace.
var errNoTCPHandler = errors.New("no handler for address")
var errNoTCPHandler = &trace.NotFoundError{Message: "no handler for address"}

// tcpHandlerSpec specifies a VNet TCP handler.
type tcpHandlerSpec struct {
Expand Down

0 comments on commit 5486ab6

Please sign in to comment.