watchtower/wtwire/error_code: add DeleteSessionCodeNotFound string
This commit is contained in:
parent
590f5811e8
commit
1000223c71
@ -12,8 +12,6 @@ const (
|
|||||||
// client side, or that the tower had already deleted the session in a
|
// client side, or that the tower had already deleted the session in a
|
||||||
// prior request that the client may not have received.
|
// prior request that the client may not have received.
|
||||||
DeleteSessionCodeNotFound DeleteSessionCode = 80
|
DeleteSessionCodeNotFound DeleteSessionCode = 80
|
||||||
|
|
||||||
// TODO(conner): add String method after wtclient is merged
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeleteSessionReply is a message sent in response to a client's DeleteSession
|
// DeleteSessionReply is a message sent in response to a client's DeleteSession
|
||||||
|
@ -46,6 +46,8 @@ func (c ErrorCode) String() string {
|
|||||||
return "StateUpdateCodeMaxUpdatesExceeded"
|
return "StateUpdateCodeMaxUpdatesExceeded"
|
||||||
case StateUpdateCodeSeqNumOutOfOrder:
|
case StateUpdateCodeSeqNumOutOfOrder:
|
||||||
return "StateUpdateCodeSeqNumOutOfOrder"
|
return "StateUpdateCodeSeqNumOutOfOrder"
|
||||||
|
case DeleteSessionCodeNotFound:
|
||||||
|
return "DeleteSessionCodeNotFound"
|
||||||
default:
|
default:
|
||||||
return fmt.Sprintf("UnknownErrorCode: %d", c)
|
return fmt.Sprintf("UnknownErrorCode: %d", c)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user