MCPcopy
hub / github.com/harness/harness / InternalErrorf

Function InternalErrorf

app/api/render/render_error.go:67–69  ·  view source on GitHub ↗

InternalErrorf writes the json-encoded message with internal server error status code.

(ctx context.Context, w http.ResponseWriter, format string, args ...interface{})

Source from the content-addressed store, hash-verified

65
66// InternalErrorf writes the json-encoded message with internal server error status code.
67func InternalErrorf(ctx context.Context, w http.ResponseWriter, format string, args ...interface{}) {
68 UserError(ctx, w, usererror.Newf(http.StatusInternalServerError, format, args...))
69}
70
71// UserError writes the json-encoded user error.
72func UserError(ctx context.Context, w http.ResponseWriter, err *usererror.Error) {

Callers

nothing calls this directly

Calls 2

NewfFunction · 0.92
UserErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…