mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-11 08:47:46 +02:00
Improve error handling in GetObjectStoreUsers per PR review
This commit is contained in:
1 parent
e559b8df37
commit
57a16b0b87
1 file changed
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user