MCPcopy
hub / github.com/harness/harness / InternalError

Function InternalError

app/api/render/render_error.go:62–64  ·  view source on GitHub ↗

InternalError writes the json-encoded message for an internal error.

(ctx context.Context, w http.ResponseWriter)

Source from the content-addressed store, hash-verified

60
61// InternalError writes the json-encoded message for an internal error.
62func InternalError(ctx context.Context, w http.ResponseWriter) {
63 UserError(ctx, w, usererror.ErrInternal)
64}
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{}) {

Callers 6

HandleTailFunction · 0.92
HandleGitIgnoresFunction · 0.92
HandleLicencesFunction · 0.92
NewWebHandlerFunction · 0.92
HandleMethod · 0.92
HandleMethod · 0.92

Calls 1

UserErrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…