From f2bec9b390d8f6f35628ca354e86c340995a8abb Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Mon, 29 Nov 2021 21:10:39 +0100 Subject: [PATCH] Force codegen to skip processing on error --- pkg/codegen/afunc.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/codegen/afunc.go b/pkg/codegen/afunc.go index cf5c438b3..5bad27190 100644 --- a/pkg/codegen/afunc.go +++ b/pkg/codegen/afunc.go @@ -3,12 +3,13 @@ package codegen import ( "encoding/json" "fmt" - . "github.com/cortezaproject/corteza-server/pkg/y7s" - "gopkg.in/yaml.v3" "os" "path" "strings" "text/template" + + . "github.com/cortezaproject/corteza-server/pkg/y7s" + "gopkg.in/yaml.v3" ) type ( @@ -164,6 +165,7 @@ func expandAutomationFunctionTypes(ff []*aFuncDefs, tt []*exprTypesDef) { for _, t := range p.Types { if ti[t.WorkflowType] == nil { fmt.Printf("%s/%s(): unknown type %q used for param %q\n", f.Prefix, fn.Name, t.WorkflowType, p.Name) + continue } if t.GoType == "" { @@ -182,6 +184,7 @@ func expandAutomationFunctionTypes(ff []*aFuncDefs, tt []*exprTypesDef) { for _, r := range fn.Results { if ti[r.WorkflowType] == nil { fmt.Printf("%s/%s(): unknown type %q used for result %q\n", f.Prefix, fn.Name, r.WorkflowType, r.Name) + continue } if r.GoType == "" {