From ba8e7d316950e9230acf1a531ab569994e455fed Mon Sep 17 00:00:00 2001 From: pb Date: Wed, 9 Jul 2025 12:08:45 +0200 Subject: [PATCH] improved error message --- controllers/minio.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/minio.go b/controllers/minio.go index cbec3d5..b053155 100644 --- a/controllers/minio.go +++ b/controllers/minio.go @@ -31,7 +31,7 @@ func (m *MinioController) CreateServiceAccount() { s := oclib.NewRequest(oclib.LibDataEnum(oclib.STORAGE_RESOURCE), "", "", []string{}, nil).LoadOne(minioId) if s.Err != "" { m.Ctx.Output.SetStatus(400) - m.Data["json"] = map[string]interface{}{"error":s.Err} + m.Data["json"] = map[string]interface{}{"error": " Could not load the storage resource with id " + minioId + ": " + s.Err} m.ServeJSON() return }