特殊处理err

This commit is contained in:
richboo111
2022-11-03 11:00:36 +08:00
parent 6051b0c5b2
commit 3e8dffb8e7
3 changed files with 9 additions and 10 deletions

View File

@@ -1794,9 +1794,10 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
}
}
}
globals.SugarLogger.Info("utils.IsNil(errList)==============", utils.IsNil(errList))
globals.SugarLogger.Debug("errList============", utils.Format4Output(errList, true))
return num, errors.New(fmt.Sprintf("errList=%v,err=%v", utils.Format4Output(errList, true), err))
errList.AddErr(err)
endErr := errList.GetErrListAsOne()
globals.SugarLogger.Info("endErr==============", endErr)
return num, endErr
}
func DeleteStore(ctx *jxcontext.Context, storeID int) (num int64, err error) {