chore(errors): Add early disconnection error (#6126)
This commit is contained in:
1 parent
a7de77c929
commit
dc25c1aadd
3 files changed
+12
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user