@@ -578,7 +578,8 @@ static gboolean _topology_checkGraphAttributes(Topology* top) {
578578 /* we use a string because there is an error in igraph boolean attribute code. */
579579 isSuccess = isSuccess && _topology_checkAttributeType (name , type , IGRAPH_ATTRIBUTE_STRING );
580580 } else {
581- warning ("graph attribute '%s' is unsupported and will be ignored" , name );
581+ error ("graph attribute '%s' is unsupported" , name );
582+ isSuccess = FALSE;
582583 }
583584 }
584585
@@ -609,7 +610,8 @@ static gboolean _topology_checkGraphAttributes(Topology* top) {
609610 } else if (_topology_isValidVertexAttributeKey (name , VERTEX_ATTR_PACKETLOSS )) {
610611 isSuccess = isSuccess && _topology_checkAttributeType (name , type , IGRAPH_ATTRIBUTE_NUMERIC );
611612 } else {
612- debug ("vertex attribute '%s' is unsupported and will be ignored" , name );
613+ error ("vertex attribute '%s' is unsupported" , name );
614+ isSuccess = FALSE;
613615 }
614616 }
615617
@@ -651,7 +653,8 @@ static gboolean _topology_checkGraphAttributes(Topology* top) {
651653 } else if (_topology_isValidEdgeAttributeKey (name , EDGE_ATTR_PACKETLOSS )) {
652654 isSuccess = isSuccess && _topology_checkAttributeType (name , type , IGRAPH_ATTRIBUTE_NUMERIC );
653655 } else {
654- debug ("edge attribute '%s' is unsupported and will be ignored" , name );
656+ error ("edge attribute '%s' is unsupported" , name );
657+ isSuccess = FALSE;
655658 }
656659 }
657660
0 commit comments