mirror of
https://github.com/DeterminateSystems/flake-checker.git
synced 2024-09-19 02:17:16 +03:00
panic -> Err
This commit is contained in:
parent
da4c503608
commit
2a870c3bfe
@ -174,7 +174,7 @@ impl<'de> Deserialize<'de> for FlakeLock {
|
||||
let mut root_nodes = HashMap::new();
|
||||
let root_node = &nodes[&root];
|
||||
let Node::Root(root_node) = root_node else {
|
||||
panic!("root node was not a Root node, but was a {} node", root_node.variant());
|
||||
return Err(de::Error::custom(format!("root node was not a Root node, but was a {} node", root_node.variant())));
|
||||
};
|
||||
for (root_name, root_reference) in root_node.inputs.iter() {
|
||||
let node_keys: Vec<String> = match root_reference {
|
||||
|
Loading…
Reference in New Issue
Block a user