watchtower/wtwire/error_code: add DeleteSessionCodeNotFound string

This commit is contained in:
Conner Fromknecht committed 2019-04-23 20:06:56 -07:00
1 parent 590f5811e8
commit 1000223c71
2 files changed
+2 -2

No files matched your search

@@ -12,8 +12,6 @@ const (
// client side, or that the tower had already deleted the session in a
// prior request that the client may not have received.
DeleteSessionCodeNotFound DeleteSessionCode = 80
// TODO(conner): add String method after wtclient is merged
)
// DeleteSessionReply is a message sent in response to a client's DeleteSession
+2
View File
@@ -46,6 +46,8 @@ func (c ErrorCode) String() string {
return "StateUpdateCodeMaxUpdatesExceeded"
case StateUpdateCodeSeqNumOutOfOrder:
return "StateUpdateCodeSeqNumOutOfOrder"
case DeleteSessionCodeNotFound:
return "DeleteSessionCodeNotFound"
default:
return fmt.Sprintf("UnknownErrorCode: %d", c)
}