mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
#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:
parent
787344e8f4
commit
11644dd1f1
@ -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")]
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user