improved error message
This commit is contained in:
@@ -31,7 +31,7 @@ func (m *MinioController) CreateServiceAccount() {
|
|||||||
s := oclib.NewRequest(oclib.LibDataEnum(oclib.STORAGE_RESOURCE), "", "", []string{}, nil).LoadOne(minioId)
|
s := oclib.NewRequest(oclib.LibDataEnum(oclib.STORAGE_RESOURCE), "", "", []string{}, nil).LoadOne(minioId)
|
||||||
if s.Err != "" {
|
if s.Err != "" {
|
||||||
m.Ctx.Output.SetStatus(400)
|
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()
|
m.ServeJSON()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user