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

Method NotFoundOrErrorf

internal/context/context.go:193–195  ·  view source on GitHub ↗

NotFoundOrErrorf is same as NotFoundOrError but with formatted message.

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

Source from the content-addressed store, hash-verified

191
192// NotFoundOrErrorf is same as NotFoundOrError but with formatted message.
193func (c *Context) NotFoundOrErrorf(err error, format string, args ...any) {
194 c.NotFoundOrError(err, fmt.Sprintf(format, args...))
195}
196
197func (c *Context) PlainText(status int, msg string) {
198 c.Render.PlainText(status, []byte(msg))

Callers

nothing calls this directly

Calls 1

NotFoundOrErrorMethod · 0.95

Tested by

no test coverage detected