improved error message
This commit is contained in:
parent
271d74b4dd
commit
ba8e7d3169
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user