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