From 0c97fd44f0edeb0cfbc546d2f2afccf9d827632d Mon Sep 17 00:00:00 2001 From: ioito Date: Wed, 16 Oct 2019 18:11:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=81=BF=E5=85=8D=E8=BF=94=E5=9B=9Enil,?= =?UTF-8?q?=20nil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/cloudcommon/db/db_dispatcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloudcommon/db/db_dispatcher.go b/pkg/cloudcommon/db/db_dispatcher.go index 684b999c2e..7ef5922d6f 100644 --- a/pkg/cloudcommon/db/db_dispatcher.go +++ b/pkg/cloudcommon/db/db_dispatcher.go @@ -1188,7 +1188,7 @@ func (dispatcher *DBModelDispatcher) BatchCreate(ctx context.Context, query json onBatchCreateFail, validateError = manager.BatchPreValidate( ctx, userCred, ownerId, query, cdata.(*jsonutils.JSONDict), len(multiData)) if validateError != nil { - return nil, err + return nil, validateError } } model, err := batchCreateDoCreateItem(manager, ctx, userCred, ownerId, query, cdata, i)