Browse Source

Improve error handling in GetObjectStoreUsers per PR review

pull/8103/head
Chris Lu 2 days ago
parent
commit
57a16b0b87
  1. 3
      weed/admin/dash/admin_server.go

3
weed/admin/dash/admin_server.go

@ -521,8 +521,7 @@ func (s *AdminServer) GetObjectStoreUsers(ctx context.Context) ([]ObjectStoreUse
s3cfg, err := s.credentialManager.LoadConfiguration(ctx) s3cfg, err := s.credentialManager.LoadConfiguration(ctx)
if err != nil { 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 var users []ObjectStoreUser

Loading…
Cancel
Save