watchtower/wtwire/error_code: add DeleteSessionCodeNotFound string

This commit is contained in:
Conner Fromknecht 2019-04-23 20:06:56 -07:00
parent 590f5811e8
commit 1000223c71
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7
2 changed files with 2 additions and 2 deletions

@ -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)
} }