Developing lightweight computation at the DSG edge

Commit eac19267 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[fetch] Add error check to Unmarshal function


Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent 10701441
...@@ -141,7 +141,9 @@ func main() { ...@@ -141,7 +141,9 @@ func main() {
b, _ := ioutil.ReadAll(xmlFile) b, _ := ioutil.ReadAll(xmlFile)
var GuifiCnml Cnml var GuifiCnml Cnml
xml.Unmarshal(b, &GuifiCnml) err = xml.Unmarshal(b, &GuifiCnml)
errCheck(err)
GuifiCnml.Network.Zone = propagateGraphServerInZone(GuifiCnml.Network.Zone) GuifiCnml.Network.Zone = propagateGraphServerInZone(GuifiCnml.Network.Zone)
var allnodes = getNodesInZone(GuifiCnml.Network.Zone) var allnodes = getNodesInZone(GuifiCnml.Network.Zone)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment