MCPcopy
hub / github.com/aptly-dev/aptly / AbortWithJSONError

Function AbortWithJSONError

api/api.go:329–332  ·  view source on GitHub ↗
(c *gin.Context, code int, err error)

Source from the content-addressed store, hash-verified

327}
328
329func AbortWithJSONError(c *gin.Context, code int, err error) {
330 c.Writer.Header().Set("Content-Type", "application/json; charset=utf-8")
331 _ = c.AbortWithError(code, err)
332}

Callers 15

reposServeInAPIModeFunction · 0.85
apiReposListFunction · 0.85
apiReposCreateFunction · 0.85
apiReposEditFunction · 0.85
apiReposShowFunction · 0.85
apiReposDropFunction · 0.85
apiReposPackagesShowFunction · 0.85
apiReposPackageFromDirFunction · 0.85
apiReposCopyPackageFunction · 0.85
apiDiskFreeFunction · 0.85

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected