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

This commit is contained in:
April-May authored and GitHub committed 2025-10-09 10:44:18 -07:00
1 parent a7de77c929
commit dc25c1aadd
3 files changed
+12

No files matched your search

+3
View File
@@ -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.
+5
View File
@@ -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,
+4
View File
@@ -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,