#258 - Unrecognized node in queueingStructure.json generates a warning and continues rather than aborting hard. This makes it a lot more tolerant of anything changing.

This commit is contained in:
Herbert Wolverson 2023-02-09 14:15:06 +00:00
parent 787344e8f4
commit 11644dd1f1
2 changed files with 1 additions and 4 deletions

View File

@ -36,8 +36,6 @@ pub enum HexParseError {
#[derive(Error, Debug)]
pub enum QueueStructureError {
#[error("Unable to parse node structure from JSON")]
JsonKeyUnparseable(String),
#[error("unable to parse u64")]
U64Parse(String),
#[error("Unable to retrieve string from JSON")]

View File

@ -227,8 +227,7 @@ impl QueueNode {
}
}
} else {
error!("Unable to parse node structure for [{key}]");
return Err(QueueStructureError::JsonKeyUnparseable(key.to_string()));
log::warn!("Unable to parse node structure for [{key}]");
}
Ok(result)
}