From f31dcbe2cb623c545d6ee6edeefddc109c1c5648 Mon Sep 17 00:00:00 2001
From: "S.H." <sebastian.heiss94@proton.me>
Date: Wed, 26 Feb 2025 13:40:37 +0100
Subject: [PATCH] Output parsing errors in northbound/server/topology.go

---
 controller/northbound/server/topology.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/controller/northbound/server/topology.go b/controller/northbound/server/topology.go
index 27e7dd361..bf621b49f 100644
--- a/controller/northbound/server/topology.go
+++ b/controller/northbound/server/topology.go
@@ -3,6 +3,7 @@ package server
 import (
 	"context"
 	"errors"
+	"fmt"
 	"time"
 
 	topopb "code.fbi.h-da.de/danet/gosdn/api/go/gosdn/topology"
@@ -51,6 +52,8 @@ func (t TopologyServer) checkForValidationErrors(request protoreflect.ProtoMessa
 		if ok := errors.As(err, &valErr); ok {
 			protoErr := valErr.ToProto()
 			grpcError, _ := status.New(codes.Aborted, "Validation failed").WithDetails(protoErr)
+			fmt.Printf("valErr: %v\n", valErr)
+			fmt.Printf("err: %v\n", err)
 
 			return grpcError.Err()
 		}
-- 
GitLab