MCPcopy Create free account
hub / github.com/bcspragu/logseq-sync / handleError

Function handleError

cmd/server/main.go:358–362  ·  view source on GitHub ↗
(w http.ResponseWriter, err error)

Source from the content-addressed store, hash-verified

356}
357
358func handleError(w http.ResponseWriter, err error) {
359 code, userMsg := httperr.Extract(err)
360 http.Error(w, userMsg, code)
361 log.Printf("error from handler %d, %s: %v", code, userMsg, err)
362}
363
364type getFilesMetaRequest struct {
365 Files []string `json:"Files"`

Callers 1

toHandleFuncFunction · 0.85

Calls 2

ExtractFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected