mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #1093 in YUNIONIO/onecloud from ~QIUJIAN/onecloud:hotfix/qj-batch-result-include-complete-error to release/2.6.0
* commit '8e56608e541d3dfc94cb4586b08e8a578d03e10e': fix: batch result include complete jsonerror instead of just details
This commit is contained in:
@@ -226,7 +226,7 @@ func BatchDo(ids []string, do func(id string) (jsonutils.JSONObject, error)) []S
|
||||
if e != nil {
|
||||
ecls, ok := e.(*httputils.JSONClientError)
|
||||
if ok {
|
||||
results <- SubmitResult{Status: ecls.Code, Id: id, Data: jsonutils.NewString(ecls.Details)}
|
||||
results <- SubmitResult{Status: ecls.Code, Id: id, Data: jsonutils.Marshal(ecls)}
|
||||
} else {
|
||||
results <- SubmitResult{Status: 400, Id: id, Data: jsonutils.NewString(e.Error())}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user