From 3675495d5f82fb683df0c380c0673b50af0daa90 Mon Sep 17 00:00:00 2001 From: Neshura Date: Sun, 17 Dec 2023 14:43:21 +0100 Subject: [PATCH] Added some Sanity checking for config values --- src/config/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/config/mod.rs b/src/config/mod.rs index 14af0cc..41eb087 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -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) }