watchtower/wtwire/error_code: add DeleteSessionCodeNotFound string
This commit is contained in:
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
|
// 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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user