MCPcopy
hub / github.com/cortexlabs/cortex / respondError

Function respondError

pkg/operator/endpoints/respond.go:44–46  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request, err error, strs ...string)

Source from the content-addressed store, hash-verified

42}
43
44func respondError(w http.ResponseWriter, r *http.Request, err error, strs ...string) {
45 respondErrorCode(w, r, http.StatusBadRequest, err, strs...)
46}
47
48func respondErrorCode(w http.ResponseWriter, r *http.Request, code int, err error, strs ...string) {
49 err = errors.Wrap(err, strs...)

Callers 15

ReadLogsFunction · 0.85
GetLogURLFunction · 0.85
StopTaskJobFunction · 0.85
GetTaskJobFunction · 0.85
StopBatchJobFunction · 0.85
ReadJobLogsFunction · 0.85
GetJobLogURLFunction · 0.85
RefreshFunction · 0.85
AWSAuthMiddlewareFunction · 0.85
SubmitTaskJobFunction · 0.85
DeleteFunction · 0.85

Calls 1

respondErrorCodeFunction · 0.85

Tested by

no test coverage detected