server: change error

This commit is contained in:
aler9
2021-11-06 12:37:41 +01:00
parent ee767bfdef
commit 1a59346356
2 changed files with 5 additions and 5 deletions

View File

@@ -280,10 +280,10 @@ func (e ErrServerUDPPortsAlreadyInUse) Error() string {
e.Port, e.Port+1)
}
// ErrServerSessionNoAssociatedConns is an error that can be returned by a server.
type ErrServerSessionNoAssociatedConns struct{}
// ErrServerSessionNotInUse is an error that can be returned by a server.
type ErrServerSessionNotInUse struct{}
// Error implements the error interface.
func (e ErrServerSessionNoAssociatedConns) Error() string {
return "there are no associated connections anymore"
func (e ErrServerSessionNotInUse) Error() string {
return "not in use"
}