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

Function newCodedError

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

Source from the content-addressed store, hash-verified

96}
97
98func newCodedError(code string, err error, details ...map[string]any) error {
99 if err == nil {
100 return nil
101 }
102 return codedError{
103 code: code,
104 err: err,
105 details: mergeJSONErrorDetails(details...),
106 }
107}
108
109func withJSONErrorDetails(err error, details ...map[string]any) error {
110 if err == nil {

Calls 1

mergeJSONErrorDetailsFunction · 0.85

Tested by 1