MCPcopy Create free account
hub / github.com/pace/bricks / setID

Method setID

http/jsonapi/runtime/error.go:73–77  ·  view source on GitHub ↗

setID sets the error id on the request

(errorID string)

Source from the content-addressed store, hash-verified

71
72// setID sets the error id on the request
73func (e Errors) setID(errorID string) {
74 for _, err := range e {
75 err.ID = errorID
76 }
77}
78
79// WriteError writes a jsonapi error message to the client
80func WriteError(w http.ResponseWriter, code int, err error) {

Callers 1

WriteErrorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected