Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

Improve error handling in GetObjectStoreUsers per PR review

Chris Lu57a16b0b8720
diff --git a/weed/admin/dash/admin_server.go b/weed/admin/dash/admin_server.go
index e001576b99..80f3263b3a 100644
--- a/weed/admin/dash/admin_server.go
+++ b/weed/admin/dash/admin_server.go
@@ -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