MCPcopy
hub / github.com/kopia/kopia / unableToDecodeRequest

Function unableToDecodeRequest

internal/server/api_error.go:22–24  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

20}
21
22func unableToDecodeRequest(err error) *apiError {
23 return requestError(serverapi.ErrorMalformedRequest, "unable to decode request: "+err.Error())
24}
25
26func notFoundError(message string) *apiError {
27 return &apiError{http.StatusNotFound, serverapi.ErrorNotFound, message}

Callers 6

handleRepoCreateFunction · 0.85
handleRepoExistsFunction · 0.85
handleRepoConnectFunction · 0.85
handleRepoSetDescriptionFunction · 0.85
handleRepoSetThrottleFunction · 0.85
handlePolicyResolveFunction · 0.85

Calls 2

requestErrorFunction · 0.85
ErrorMethod · 0.65

Tested by

no test coverage detected