(err any)
| 188 | } |
| 189 | |
| 190 | func 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…