fix: added validatecfg check, errorf to fatalf, enhaced test cases

This commit is contained in:
rupinder-syngh
2025-04-10 17:29:51 +05:30
parent 2b850f8bb7
commit 037fc02909
2 changed files with 199 additions and 190 deletions

View File

@@ -28,6 +28,9 @@ type Manager struct {
}
func validateMgrCfg(cfg *ManagerConfig) error {
if cfg.Root == "" {
return fmt.Errorf("Root path cannot be empty")
}
return nil
}