Improve error handling in GetObjectStoreUsers per PR review

This commit is contained in:
Chris Lu
2026-01-23 20:34:39 -08:00
parent e559b8df37
commit 57a16b0b87

View File

@@ -521,8 +521,7 @@ func (s *AdminServer) GetObjectStoreUsers(ctx context.Context) ([]ObjectStoreUse
s3cfg, err := s.credentialManager.LoadConfiguration(ctx)
if err != nil {
glog.Errorf("Failed to load IAM configuration: %v", err)
return []ObjectStoreUser{}, nil // Return empty list instead of error for UI
return nil, fmt.Errorf("failed to load IAM configuration: %w", err)
}
var users []ObjectStoreUser