Export ErrNoColumns, name the cure for a shell-split template and an unquoted record, and name the flag a missing data path came from

This commit is contained in:
2026-09-18 20:35:56 +02:00
parent 9db8d35a49
commit c8a4ffa764
5 changed files with 22 additions and 8 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ func loadData(sources []dataSource) (map[string]node, error) {
}
info, err := os.Stat(src.path)
if err != nil {
return nil, err
return nil, fmt.Errorf("data path %s: %w", src.path, err)
}
if !info.IsDir() {
return nil, fmt.Errorf("%s is not a directory", src.path)