MCPcopy Create free account
hub / github.com/algolia/cli / FlagErrorf

Function FlagErrorf

pkg/cmdutil/errors.go:12–14  ·  view source on GitHub ↗

FlagErrorf returns a new FlagError that wraps an error produced by fmt.Errorf(format, args...).

(format string, args ...interface{})

Source from the content-addressed store, hash-verified

10// FlagErrorf returns a new FlagError that wraps an error produced by
11// fmt.Errorf(format, args...).
12func FlagErrorf(format string, args ...interface{}) error {
13 return FlagErrorWrap(fmt.Errorf(format, args...))
14}
15
16// FlagError returns a new FlagError that wraps the specified error.
17func FlagErrorWrap(err error) error { return &FlagError{err} }

Callers 15

ExactArgsWithMsgFunction · 0.92
AtLeastNArgsFunction · 0.92
NewDeleteCmdFunction · 0.92
runUpdateCmdFunction · 0.92
runOperationsCmdFunction · 0.92
NewRemoveCmdFunction · 0.92
NewAddCmdFunction · 0.92
NewDeleteCmdFunction · 0.92
NewImportCmdFunction · 0.92
NewDeleteCmdFunction · 0.92
resolveTargetFunction · 0.92
resolvePlanFunction · 0.92

Calls 2

FlagErrorWrapFunction · 0.85
ErrorfMethod · 0.65

Tested by

no test coverage detected