(err error)
| 99 | } |
| 100 | |
| 101 | func 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, |
no test coverage detected