From 445408d7259fc87c317419a3e54f235ec588f4c8 Mon Sep 17 00:00:00 2001
From: Manuel Kieweg <mail@manuelkieweg.de>
Date: Mon, 8 Mar 2021 17:31:49 +0000
Subject: [PATCH] pass error up

---
 nucleus/southbound.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nucleus/southbound.go b/nucleus/southbound.go
index d1755dad2..ab2ab15d4 100644
--- a/nucleus/southbound.go
+++ b/nucleus/southbound.go
@@ -100,8 +100,8 @@ func unmarshal(bytes []byte, fields []string, goStruct interface{}, opt ...ytype
 	if err != nil {
 		return
 	}
-	if err := openconfig.Unmarshal(bytes, c, opt...); err != nil {
-		log.Error(err)
+	if err = openconfig.Unmarshal(bytes, c, opt...); err != nil {
+		return
 	}
 	reflect.ValueOf(goStruct.(*openconfig.Device)).Elem().FieldByName(field).Set(reflect.ValueOf(c))
 	return nil
-- 
GitLab