diff --git a/iqshell/storage/object/fop.go b/iqshell/storage/object/fop.go index 66dd0e75..4f091bc6 100644 --- a/iqshell/storage/object/fop.go +++ b/iqshell/storage/object/fop.go @@ -71,7 +71,10 @@ func Pfop(info PfopApiInfo) (string, *data.CodeError) { WorkflowTemplateID: info.WorkflowTemplateID, } pfopRet, e := opManager.PfopV2(context.Background(), &pfopRequest) - return pfopRet.PersistentID, data.ConvertError(e) + if e != nil { + return "", data.ConvertError(e) + } + return pfopRet.PersistentID, nil } func getOperationManager(bucket string) (*storage.OperationManager, *data.CodeError) {