From 6c935643aeabe0df430a28beb8cbe0e99a6dff95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 7 Jan 2020 14:25:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sync.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index b0775f60b..486caec51 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -637,6 +637,9 @@ func (v *VendorSync) LoopStoresMap2(ctx *jxcontext.Context, db *dao.DaoDB, taskN tasksch.HandleTask(task, nil, isManageIt).Run() if !isAsync { resultList, err2 := task.GetResult(0) + if err2 != nil { + err2 = errors.New(utils.Format4Output(task.GetErrMsg(), true)) + } if err = err2; err == nil { if len(resultList) == 0 { hint = "1" // todo 暂时这样