MCPcopy
hub / github.com/gofiber/fiber / handleSessionError

Function handleSessionError

middleware/session/middleware.go:127–133  ·  view source on GitHub ↗
(c fiber.Ctx, handler func(fiber.Ctx, error), err error)

Source from the content-addressed store, hash-verified

125var registerLogContextTagsOnce sync.Once
126
127func handleSessionError(c fiber.Ctx, handler func(fiber.Ctx, error), err error) {
128 if handler != nil {
129 handler(c, err)
130 return
131 }
132 DefaultErrorHandler(c, err)
133}
134
135func registerLogContextTags() {
136 logger.RegisterContextTag("session-id", func(ctx any) string {

Callers 1

NewWithStoreFunction · 0.85

Calls 1

DefaultErrorHandlerFunction · 0.70

Tested by

no test coverage detected