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

Function withJSONErrorDetails

cmd/output.go:109–117  ·  view source on GitHub ↗
(err error, details ...map[string]any)

Source from the content-addressed store, hash-verified

107}
108
109func withJSONErrorDetails(err error, details ...map[string]any) error {
110 if err == nil {
111 return nil
112 }
113 return detailedError{
114 err: err,
115 details: mergeJSONErrorDetails(details...),
116 }
117}
118
119func commandFailedErrorfWithDetails(format string, details map[string]any, args ...any) error {
120 return newCodedError(jsonErrorCodeCommandFailed, fmt.Errorf(format, args...), details)

Callers 15

putFunction · 0.85
putStdinFunction · 0.85
putRecursiveInternalFunction · 0.85
addMemberFunction · 0.85
shareLinkUpdateFunction · 0.85
shareLinkRevokeFunction · 0.85
revokeSharedLinksForPathFunction · 0.85
shareLinkDownloadFunction · 0.85
shareLinkInfoFunction · 0.85
restoreFunction · 0.85

Calls 1

mergeJSONErrorDetailsFunction · 0.85