- retrieve errmsg from data in funcs createPromotionSku

This commit is contained in:
gazebo
2018-11-07 11:18:16 +08:00
parent 09bb22a8a6
commit af0896eda9
2 changed files with 6 additions and 11 deletions

View File

@@ -215,7 +215,7 @@ func genNoPageResultParser(codeKey, msgKey, resultKey, okCode string) func(data
return nil, nil
}
if msg, ok := data[msgKey]; ok {
errMsg := msg.(string)
errMsg := utils.Format4Output(msg, true)
if innerCode == ResponseInnerCodePartialFailed {
errMsg += ", " + utils.Format4Output(data[resultKey], true)
}