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

Function mergeJSONErrorDetails

cmd/output.go:547–560  ·  view source on GitHub ↗
(details ...map[string]any)

Source from the content-addressed store, hash-verified

545}
546
547func mergeJSONErrorDetails(details ...map[string]any) map[string]any {
548 merged := make(map[string]any)
549 for _, detail := range details {
550 for key, value := range detail {
551 if value != nil {
552 merged[key] = value
553 }
554 }
555 }
556 if len(merged) == 0 {
557 return nil
558 }
559 return merged
560}
561
562func dropboxAPIJSONErrorCode(err error) string {
563 var rateLimitErr dropboxauth.RateLimitAPIError

Callers 15

putFunction · 0.85
putStdinFunction · 0.85
checkPutStdinDestinationFunction · 0.85
putRecursiveInternalFunction · 0.85
newCodedErrorFunction · 0.85
withJSONErrorDetailsFunction · 0.85
shareLinkUpdateFunction · 0.85
shareLinkRevokeFunction · 0.85
shareLinkDownloadFunction · 0.85

Calls

no outgoing calls

Tested by 1