MCPcopy Create free account
hub / github.com/driangle/taskmd / writeError

Function writeError

apps/cli/internal/web/handlers.go:375–379  ·  view source on GitHub ↗
(w http.ResponseWriter, status int, msg string, details []string)

Source from the content-addressed store, hash-verified

373}
374
375func writeError(w http.ResponseWriter, status int, msg string, details []string) {
376 w.Header().Set("Content-Type", "application/json")
377 w.WriteHeader(status)
378 json.NewEncoder(w).Encode(ErrorResponse{Error: msg, Details: details}) //nolint:errcheck
379}
380
381func findTaskByID(tasks []*model.Task, id string) *model.Task {
382 for _, t := range tasks {

Callers 3

projectMiddlewareFunction · 0.85
handleUpdateTaskFunction · 0.85
handleFileUpdateErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected