Skip to content
Snippets Groups Projects
Commit 445408d7 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

pass error up

parent 0d93ccbb
No related branches found
No related tags found
2 merge requests!106Resolve "Job Failed #240443",!90Develop
Pipeline #66529 passed with warnings
...@@ -100,8 +100,8 @@ func unmarshal(bytes []byte, fields []string, goStruct interface{}, opt ...ytype ...@@ -100,8 +100,8 @@ func unmarshal(bytes []byte, fields []string, goStruct interface{}, opt ...ytype
if err != nil { if err != nil {
return return
} }
if err := openconfig.Unmarshal(bytes, c, opt...); err != nil { if err = openconfig.Unmarshal(bytes, c, opt...); err != nil {
log.Error(err) return
} }
reflect.ValueOf(goStruct.(*openconfig.Device)).Elem().FieldByName(field).Set(reflect.ValueOf(c)) reflect.ValueOf(goStruct.(*openconfig.Device)).Elem().FieldByName(field).Set(reflect.ValueOf(c))
return nil return nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment