MCPcopy
hub / github.com/pocketbase/pocketbase / resolveSafeErrorsData

Function resolveSafeErrorsData

tools/router/error.go:176–188  ·  view source on GitHub ↗
(data map[string]T)

Source from the content-addressed store, hash-verified

174}
175
176func resolveSafeErrorsData[T any](data map[string]T) map[string]any {
177 result := map[string]any{}
178
179 for name, err := range data {
180 if isNestedError(err) {
181 result[name] = safeErrorsData(err)
182 } else {
183 result[name] = resolveSafeErrorItem(err)
184 }
185 }
186
187 return result
188}
189
190func isNestedError(err any) bool {
191 switch err.(type) {

Callers 1

safeErrorsDataFunction · 0.85

Calls 3

isNestedErrorFunction · 0.85
safeErrorsDataFunction · 0.85
resolveSafeErrorItemFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…