aboutsummaryrefslogtreecommitdiff
path: root/reuseport/reuseport_error.go
blob: 062f09bb9a07e55b50582a039e0973c2b1d6c237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package reuseport

import (
	"fmt"
)

// ErrNoReusePort is returned if the OS doesn't support SO_REUSEPORT.
type ErrNoReusePort struct {
	err error
}

// Error implements error interface.
func (e *ErrNoReusePort) Error() string {
	return fmt.Sprintf("The OS doesn't support SO_REUSEPORT: %v", e.err)
}