fix
This commit is contained in:
parent
416c1f06c1
commit
055395337c
2 changed files with 7 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
/target
|
/target
|
||||||
/db
|
/db
|
||||||
/itemdb
|
/itemdb
|
||||||
|
/flows
|
||||||
|
/locations
|
|
@ -34,8 +34,7 @@ pub async fn verify_integrity(
|
||||||
.1
|
.1
|
||||||
.next
|
.next
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|x| flows.get(x).is_none())
|
.map_or(false, |x| flows.get(x).is_none())
|
||||||
.unwrap_or(false)
|
|
||||||
{
|
{
|
||||||
log::error!(
|
log::error!(
|
||||||
"Flow '{}' is referencing unknown flow '{}' as next step.",
|
"Flow '{}' is referencing unknown flow '{}' as next step.",
|
||||||
|
@ -51,8 +50,7 @@ pub async fn verify_integrity(
|
||||||
.1
|
.1
|
||||||
.parent
|
.parent
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|x| flows.get(x).is_none())
|
.map_or(false, |x| locations.get(x).is_none())
|
||||||
.unwrap_or(false)
|
|
||||||
{
|
{
|
||||||
log::error!(
|
log::error!(
|
||||||
"Location '{}' is referencing an unknown location '{}' as parent.",
|
"Location '{}' is referencing an unknown location '{}' as parent.",
|
||||||
|
@ -66,6 +64,8 @@ pub async fn verify_integrity(
|
||||||
if tainted {
|
if tainted {
|
||||||
std::process::exit(1);
|
std::process::exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log::info!("Passed basic integrity check");
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn verify_item_variant_exists(item_variant: &str, id: &str, itemdb: &ItemDB) -> Option<bool> {
|
pub fn verify_item_variant_exists(item_variant: &str, id: &str, itemdb: &ItemDB) -> Option<bool> {
|
||||||
|
|
Loading…
Reference in a new issue