Add CHANGELOG and improvements to #887

This commit is contained in:
Andrey Nering
2022-10-14 19:48:45 -03:00
parent 80b417c4ab
commit 44aa2ee3b3
3 changed files with 20 additions and 1 deletions

View File

@@ -190,7 +190,7 @@ func readTaskfile(file string) (*taskfile.Taskfile, error) {
}
var t taskfile.Taskfile
if err := yaml.NewDecoder(f).Decode(&t); err != nil {
return nil, fmt.Errorf("%s: %w", file, err)
return nil, fmt.Errorf("task: Failed to parse %s:\n%w", filepathext.TryAbsToRel(file), err)
}
return &t, nil
}