diff --git a/internal/errors/code.go b/internal/errors/code.go index 222dbfcbd0..3aac53406d 100644 --- a/internal/errors/code.go +++ b/internal/errors/code.go @@ -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. diff --git a/internal/errors/code_test.go b/internal/errors/code_test.go index 6afd68d2d4..c19aa8375d 100644 --- a/internal/errors/code_test.go +++ b/internal/errors/code_test.go @@ -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, diff --git a/internal/errors/info.go b/internal/errors/info.go index ce2e1f89e4..e54ba27933 100644 --- a/internal/errors/info.go +++ b/internal/errors/info.go @@ -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,