MCPcopy Index your code
hub / github.com/larksuite/cli / applyTaskAPIHint

Function applyTaskAPIHint

shortcuts/task/task_util.go:101–111  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

99}
100
101func applyTaskAPIHint(err error) error {
102 if err == nil {
103 return nil
104 }
105 if p, ok := errs.ProblemOf(err); ok {
106 if hint := taskAPIHints[p.Code]; hint != "" {
107 p.Hint = hint
108 }
109 }
110 return err
111}
112
113// HandleTaskApiResult interprets a parsed Lark API response. A non-zero code is
114// classified into a typed errs.* error by errclass.BuildAPIError — Category,

Callers 2

callTaskAPITypedFunction · 0.85
handleTaskAPIResultFunction · 0.85

Calls 1

ProblemOfFunction · 0.92

Tested by

no test coverage detected