MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / getReason

Method getReason

internal/auth/webhook_client_impl.go:222–229  ·  view source on GitHub ↗
(lastError error)

Source from the content-addressed store, hash-verified

220}
221
222func (client *webhookClient) getReason(lastError error) string {
223 var typedErr message.Message
224 reason := message.EUnknownError
225 if errors.As(lastError, &typedErr) {
226 reason = typedErr.Code()
227 }
228 return reason
229}
230
231func (client *webhookClient) logAuthResponse(
232 logger log.Logger,

Callers 2

processAuthWithRetryMethod · 0.95
processAuthzWithRetryMethod · 0.95

Calls 1

CodeMethod · 0.95

Tested by

no test coverage detected