MCPcopy
hub / github.com/lxc/incus / InternalError

Function InternalError

internal/server/response/response.go:300–302  ·  view source on GitHub ↗

InternalError returns an internal error response (500) with the given error.

(err error)

Source from the content-addressed store, hash-verified

298
299// InternalError returns an internal error response (500) with the given error.
300func InternalError(err error) Response {
301 return &errorResponse{http.StatusInternalServerError, err.Error()}
302}
303
304// NotFound returns a not found response (404) with the given error.
305func NotFound(err error) Response {

Callers 15

instanceConsolePostFunction · 0.92
storagePoolBucketsGetFunction · 0.92
storagePoolBucketGetFunction · 0.92
instancesPutFunction · 0.92
allowPermissionFunction · 0.92
createCmdMethod · 0.92
instancePutFunction · 0.92
storagePoolVolumesGetFunction · 0.92
doCustomVolumeRefreshFunction · 0.92
doVolumeCreateOrCopyFunction · 0.92

Calls 1

ErrorMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…