MCPcopy Index your code
hub / github.com/dnote/dnote / logError

Function logError

pkg/server/controllers/helpers.go:192–198  ·  view source on GitHub ↗
(err error, msg string)

Source from the content-addressed store, hash-verified

190}
191
192func logError(err error, msg string) {
193 // log if internal error
194 // if _, ok := err.(views.PublicError); !ok {
195 // log.ErrorWrap(err, msg)
196 // }
197 log.ErrorWrap(err, msg)
198}
199
200func getStatusCode(err error) int {
201 rootErr := errors.Cause(err)

Callers 2

handleHTMLErrorFunction · 0.85
handleJSONErrorFunction · 0.85

Calls 1

ErrorWrapFunction · 0.92

Tested by

no test coverage detected