MCPcopy Create free account
hub / github.com/dropbox/dbxcli / jsonErrorDetailsForCommand

Function jsonErrorDetailsForCommand

cmd/output.go:463–469  ·  view source on GitHub ↗
(cmd *cobra.Command, err error)

Source from the content-addressed store, hash-verified

461}
462
463func 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
471func collectJSONErrorDetails(err error, details map[string]any) {
472 if err == nil {

Callers 1

newJSONErrorResponseFunction · 0.85

Calls 5

jsonErrorDetailsFunction · 0.85
commandAsMemberIDFunction · 0.85
mergeJSONErrorDetailsFunction · 0.85
memberIDErrorDetailsFunction · 0.85

Tested by

no test coverage detected