Skip to content

Commit

Permalink
Trying to shove this into the panic statement instead?
Browse files Browse the repository at this point in the history
  • Loading branch information
daxpryce committed Nov 16, 2021
1 parent 007a609 commit 468afc2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/network_partitions/src/leiden/leiden.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ where
);
println!("We are subnetwork/partition {:?}", item.id);
// this is a bug, and we should panic
panic!("No node network, which shouldn't have happened");
panic!(
"No node network, which shouldn't have happened, {:?}\n{:?}",
&num_nodes_per_cluster, &nodes_by_cluster[item.id]
);
} else {
let subnetwork_clustering: Clustering = subnetwork_clusterer
.subnetwork_clustering(
Expand Down

0 comments on commit 468afc2

Please sign in to comment.