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

Function firstErrorArg

shortcuts/base/base_errors.go:96–103  ·  view source on GitHub ↗
(args []any)

Source from the content-addressed store, hash-verified

94}
95
96func firstErrorArg(args []any) error {
97 for _, arg := range args {
98 if err, ok := arg.(error); ok {
99 return err
100 }
101 }
102 return nil
103}
104
105// baseMissingFileIOError reports a broken runtime wiring: a command that needs
106// local file access was constructed without a FileIO provider. The user cannot

Callers 1

baseValidationErrorfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected