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

Function NewTaskfileDecodeError

errors/error_taskfile_decode.go:26–38  ·  view source on GitHub ↗
(err error, node *yaml.Node)

Source from the content-addressed store, hash-verified

24)
25
26func NewTaskfileDecodeError(err error, node *yaml.Node) *TaskfileDecodeError {
27 // If the error is already a DecodeError, return it
28 taskfileInvalidErr := &TaskfileDecodeError{}
29 if errors.As(err, &taskfileInvalidErr) {
30 return taskfileInvalidErr
31 }
32 return &TaskfileDecodeError{
33 Line: node.Line,
34 Column: node.Column,
35 Tag: node.ShortTag(),
36 Err: err,
37 }
38}
39
40func (err *TaskfileDecodeError) Error() string {
41 buf := &bytes.Buffer{}

Callers 15

UnmarshalYAMLMethod · 0.92
UnmarshalYAMLMethod · 0.92
UnmarshalYAMLMethod · 0.92
UnmarshalYAMLMethod · 0.92
UnmarshalYAMLMethod · 0.92
UnmarshalYAMLMethod · 0.92
UnmarshalYAMLMethod · 0.92
UnmarshalYAMLMethod · 0.92
UnmarshalYAMLMethod · 0.92
UnmarshalYAMLMethod · 0.92
UnmarshalYAMLMethod · 0.92
UnmarshalYAMLMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…