diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index ca75ec2bd..705317fe5 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -674,7 +674,11 @@ func buildErrMsg(task tasksch.ITask) (err error) { } } err = fmt.Errorf(utils.Format4Output(resultL, true)) - return makeSyncError(err) + if err != nil { + return makeSyncError(err) + } else { + return err + } } func (v *VendorSync) LoopStoresMap(ctx *jxcontext.Context, db *dao.DaoDB, taskName string, isAsync, isManageIt bool, vendorIDs []int, storeIDs []int, handler tasksch.WorkFunc, isContinueWhenError bool) (hint string, err error) {