(cmd *cobra.Command, err error)
| 461 | } |
| 462 | |
| 463 | func jsonErrorDetailsForCommand(cmd *cobra.Command, err error) map[string]any { |
| 464 | details := jsonErrorDetails(err) |
| 465 | if memberID := commandAsMemberID(cmd); memberID != "" && shouldAttachMemberIDErrorDetails(err) { |
| 466 | details = mergeJSONErrorDetails(memberIDErrorDetails(memberID), details) |
| 467 | } |
| 468 | return details |
| 469 | } |
| 470 | |
| 471 | func collectJSONErrorDetails(err error, details map[string]any) { |
| 472 | if err == nil { |
no test coverage detected