From b6abf4eb2266a4a775d6bf6c3c5f12176c9e5faa Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 11 May 2026 16:14:18 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Fix=20ignored=20error=20for=20Da?= =?UTF-8?q?taUsageInfo=20in=20BucketsHandler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: damacus <40786+damacus@users.noreply.github.com> --- internal/handlers/buckets_handler.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/handlers/buckets_handler.go b/internal/handlers/buckets_handler.go index c534749..844fe11 100644 --- a/internal/handlers/buckets_handler.go +++ b/internal/handlers/buckets_handler.go @@ -57,7 +57,10 @@ func (h *BucketsHandler) ListBuckets(c echo.Context) error { mdm, err := h.minioFactory.NewAdminClient(*creds) var usage madmin.DataUsageInfo if err == nil { - usage, _ = mdm.DataUsageInfo(c.Request().Context()) + var usageErr error + if usage, usageErr = mdm.DataUsageInfo(c.Request().Context()); usageErr != nil { + c.Logger().Warnf("Failed to fetch data usage info: %v", usageErr) + } } type BucketWithStats struct {