MCPcopy
hub / github.com/go-task/task / WithMessage

Method WithMessage

errors/error_taskfile_decode.go:113–116  ·  view source on GitHub ↗
(format string, a ...any)

Source from the content-addressed store, hash-verified

111}
112
113func (err *TaskfileDecodeError) WithMessage(format string, a ...any) *TaskfileDecodeError {
114 err.Message = fmt.Sprintf(format, a...)
115 return err
116}
117
118func (err *TaskfileDecodeError) WithTypeMessage(t string) *TaskfileDecodeError {
119 err.Message = fmt.Sprintf("cannot unmarshal %s into %s", err.Tag, t)

Callers 7

UnmarshalYAMLMethod · 0.80
UnmarshalYAMLMethod · 0.80
UnmarshalYAMLMethod · 0.80
UnmarshalYAMLMethod · 0.80
UnmarshalYAMLMethod · 0.80
UnmarshalYAMLMethod · 0.80
UnmarshalYAMLMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected