You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2024/09/04 10:37:04 UTC

(plc4x) 03/06: feat(plc4go/plx4xgenerator): add support for empty elements

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit f98d0a7ddda74586608b55b6ae735e25849cdc31
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed Sep 4 12:19:32 2024 +0200

    feat(plc4go/plx4xgenerator): add support for empty elements
---
 plc4go/tools/plc4xgenerator/gen.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4go/tools/plc4xgenerator/gen.go b/plc4go/tools/plc4xgenerator/gen.go
index e0727cfd7b..f113ef788e 100644
--- a/plc4go/tools/plc4xgenerator/gen.go
+++ b/plc4go/tools/plc4xgenerator/gen.go
@@ -204,7 +204,7 @@ func (g *Generator) generate(typeName string) {
 		}
 	}
 	if len(fields) == 0 {
-		log.Fatalf("no fields defined for type %s", typeName)
+		log.Printf("no fields defined for type %s", typeName)
 	}
 	// TODO: for now we remove Default from the start (maybe move that to an option)
 	logicalTypeName := "\"" + strings.TrimPrefix(typeName, "Default") + "\""