fix(config): reject a hidden YAML document and drop Go types from errors

This commit is contained in:
aykhans committed 2026-09-30 12:29:00 +04:00
1 parent 633f548e7b
commit 4a14d57d15
3 files changed
+184 -27

No files matched your search

+1 -1
View File
@@ -696,7 +696,7 @@ func ReadAllConfigs() *Config {
// parseConfigFile recursively parses a config file and its nested files up to maxDepth levels.
// Returns the merged configuration or an error if parsing fails.
// It can return the following errors:
// It can return the following errors, each wrapped in a types.ConfigFileError naming the file:
// - types.ConfigFileReadError
// - types.UnmarshalError
// - types.FieldParseErrors