mirror of
https://github.com/aykhans/sarin.git
synced 2026-10-17 06:53:52 +00:00
fix(config): reject a hidden YAML document and drop Go types from errors
This commit is contained in:
3 files changed
+184
-27
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user