This commit is contained in:
Bel LaPointe
2025-01-14 21:19:39 -07:00
parent 44488aec2d
commit 29bc6a06b4
4 changed files with 13 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ func NewTodosFromFile(p string) ([]Todo, error) {
var result []Todo
if err := yaml.NewDecoder(f).Decode(&result); err != nil {
return nil, err
return nil, fmt.Errorf("failed to parse yaml from %s: %w", p, err)
}
return result, nil