特殊处理err
This commit is contained in:
@@ -283,7 +283,8 @@ func FreightSpecialTreat(vendorOrgCode string, vendorStoreID, storeID int64) err
|
||||
_, err1 := dao.UpdateEntity(db, FreightTemplate, "TemplateID")
|
||||
errList.AddErr(fmt.Errorf("同步进数据库错误信息:%v", err1))
|
||||
}
|
||||
endErr := errList.GetErrListAsOne()
|
||||
globals.SugarLogger.Info("utils.IsNil(errList)==============", utils.IsNil(errList))
|
||||
globals.SugarLogger.Debugf("errList===============%s", utils.Format4Output(errList, false))
|
||||
return errors.New(fmt.Sprintf("errList=%s,err=%v", utils.Format4Output(errList, false), err))
|
||||
globals.SugarLogger.Debugf("errList===============%s\n,endErr========%v", utils.Format4Output(errList, false), endErr)
|
||||
return errors.New(fmt.Sprintf("endErr============%s", endErr))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user