- more accurate error msg when failed create all waybill in CreateWaybillOnProviders

This commit is contained in:
gazebo
2019-02-16 16:50:27 +08:00
parent 4224591391
commit 7c807be47d

View File

@@ -23,7 +23,7 @@ func (c *BaseScheduler) CreateWaybillOnProviders(order *model.GoodsOrder, userNa
bills = append(bills, bill) bills = append(bills, bill)
} else { } else {
globals.SugarLogger.Debugf("CreateWaybillOnProviders orderID:%s userName:%s vendorID:%d failed with error:%v", order.VendorOrderID, userName, courierVendorID, err) globals.SugarLogger.Debugf("CreateWaybillOnProviders orderID:%s userName:%s vendorID:%d failed with error:%v", order.VendorOrderID, userName, courierVendorID, err)
errList = append(errList, err.Error()) errList = append(errList, fmt.Sprintf("%s运单创建失败错误%s", model.VendorChineseNames[courierVendorID], err.Error()))
} }
} }
if len(bills) > 0 { if len(bills) > 0 {