MCPcopy
hub / github.com/larksuite/cli / withIMValidationParam

Function withIMValidationParam

shortcuts/im/im_errors.go:35–44  ·  view source on GitHub ↗
(err error, param string)

Source from the content-addressed store, hash-verified

33}
34
35func withIMValidationParam(err error, param string) error {
36 if err == nil || param == "" {
37 return err
38 }
39 var ve *errs.ValidationError
40 if errors.As(err, &ve) && ve.Param == "" {
41 ve.WithParam(param)
42 }
43 return err
44}
45
46// appendIMRecoveryHint attaches a recovery hint to err. A typed error keeps its
47// classification (category/subtype/code/log_id); only the hint is appended to

Callers 2

uploadImageToIMFunction · 0.85
uploadFileToIMFunction · 0.85

Calls 2

WithParamMethod · 0.95
AsMethod · 0.80

Tested by

no test coverage detected