MCPcopy
hub / github.com/gotify/server / successOrAbort

Function successOrAbort

api/errorHandling.go:5–10  ·  view source on GitHub ↗
(ctx *gin.Context, code int, err error)

Source from the content-addressed store, hash-verified

3import "github.com/gin-gonic/gin"
4
5func successOrAbort(ctx *gin.Context, code int, err error) (success bool) {
6 if err != nil {
7 ctx.AbortWithError(code, err)
8 }
9 return err == nil
10}

Callers 15

GetMessagesMethod · 0.85
DeleteMessagesMethod · 0.85
DeleteMessageMethod · 0.85
CreateMessageMethod · 0.85
GetPluginsMethod · 0.85
EnablePluginMethod · 0.85
DisablePluginMethod · 0.85
GetDisplayMethod · 0.85
GetConfigMethod · 0.85
UpdateConfigMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestErrorHandlingFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…