chore(errors): Add early disconnection error (#6126)

pull/6136/head
April-May 7 months ago committed by GitHub
parent a7de77c929
commit dc25c1aadd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -69,6 +69,9 @@ const (
InvalidListToken Code = 136 // InvalidListToken represents an error where the provided list token is invalid
Paused Code = 137 // Paused represents an error when an operation cannot be completed because the thing being operated on is paused
// Note: Currently unused in OSS
WindowsRDPClientEarlyDisconnection Code = 138 // WindowsRDPClientEarlyDisconnection represents an error when a Windows RDP client disconnects early, a known behavior with Windows Remote Desktop clients
AuthAttemptExpired Code = 198 // AuthAttemptExpired represents an expired authentication attempt
AuthMethodInactive Code = 199 // AuthMethodInactive represents an error that means the auth method is not active.

@ -455,6 +455,11 @@ func TestCode_Both_String_Info(t *testing.T) {
c: Paused,
want: Paused,
},
{
name: "WindowsRDPClientEarlyDisconnection",
c: WindowsRDPClientEarlyDisconnection,
want: WindowsRDPClientEarlyDisconnection,
},
{
name: "ImmutableColumn",
c: ImmutableColumn,

@ -347,6 +347,10 @@ var errorCodeInfo = map[Code]Info{
Message: "paused",
Kind: State,
},
WindowsRDPClientEarlyDisconnection: {
Message: "rdp client disconnected early",
Kind: State,
},
ExternalPlugin: {
Message: "plugin error",
Kind: External,

Loading…
Cancel
Save