MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / generateErrorText

Function generateErrorText

server/error_page.go:177–180  ·  view source on GitHub ↗
(err errctx.Error)

Source from the content-addressed store, hash-verified

175}
176
177func generateErrorText(err errctx.Error) ([]byte, string) {
178 body := fmt.Appendf([]byte{}, "%s\n\n%s", err.Error(), err.FormatStack())
179 return body, "text/plain; charset=utf-8"
180}

Callers 1

generateErrorHTMLFunction · 0.85

Calls 2

ErrorMethod · 0.65
FormatStackMethod · 0.65

Tested by

no test coverage detected