improved an error message

This commit is contained in:
pb 2025-08-06 11:09:13 +02:00
parent 10b4dac141
commit 67c312d0d6

View File

@ -99,7 +99,7 @@ func (m *MinioController) createServiceAccount(minioId string, peerID string, ex
live := findLiveStorage(minioId, peerID)
if live == nil {
m.Ctx.Output.SetStatus(404)
m.Data["json"] = map[string]interface{}{"error": "could not find the Minio instance " + s.Err}
m.Data["json"] = map[string]interface{}{"error": "could not find the Minio instance for " + minioId}
m.ServeJSON()
return "", "", false
}