MCPcopy Create free account
hub / github.com/gogs/gogs / Errorf

Method Errorf

internal/context/context.go:179–181  ·  view source on GitHub ↗

Errorf renders the 500 response with formatted message.

(err error, format string, args ...any)

Source from the content-addressed store, hash-verified

177
178// Errorf renders the 500 response with formatted message.
179func (c *Context) Errorf(err error, format string, args ...any) {
180 c.Error(err, fmt.Sprintf(format, args...))
181}
182
183// NotFoundOrError responses with 404 page for not found error and 500 page otherwise.
184func (c *Context) NotFoundOrError(err error, msg string) {

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.95

Tested by

no test coverage detected