MCPcopy
hub / github.com/pocketbase/pocketbase / isNestedError

Function isNestedError

tools/router/error.go:190–202  ·  view source on GitHub ↗
(err any)

Source from the content-addressed store, hash-verified

188}
189
190func isNestedError(err any) bool {
191 switch err.(type) {
192 case validation.Errors,
193 map[string]validation.Error,
194 map[string]SafeErrorItem,
195 map[string]error,
196 map[string]string,
197 map[string]any:
198 return true
199 }
200
201 return false
202}
203
204// resolveSafeErrorItem extracts from each validation error its
205// public safe error code and message.

Callers 1

resolveSafeErrorsDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…