MCPcopy Index your code
hub / github.com/Shopify/toxiproxy / joinError

Function joinError

api.go:500–505  ·  view source on GitHub ↗
(err error, wrapper *ApiError)

Source from the content-addressed store, hash-verified

498}
499
500func joinError(err error, wrapper *ApiError) *ApiError {
501 if err != nil {
502 return &ApiError{wrapper.Message + ": " + err.Error(), wrapper.StatusCode}
503 }
504 return nil
505}
506
507var (
508 ErrBadRequestBody = newError("bad request body", http.StatusBadRequest)

Callers 5

PopulateJsonMethod · 0.85
ProxyCreateMethod · 0.85
ProxyUpdateMethod · 0.85
AddToxicJsonMethod · 0.85
UpdateToxicJsonMethod · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…