Added some Sanity checking for config values

This commit is contained in:
Neshura 2023-12-17 14:43:21 +01:00
parent 5ddb6b3b75
commit 3675495d5f
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -20,6 +20,12 @@ impl Config {
if cfg.instance.is_empty() {
panic!("config.toml not found!")
}
cfg.series.iter().for_each(|series| {
if series.prepub_community.post_body == Description {
panic!("'Description' type Post Body only supported for Volumes!")
}
});
Ok(cfg)
}