Added some Sanity checking for config values
This commit is contained in:
parent
5ddb6b3b75
commit
3675495d5f
1 changed files with 6 additions and 0 deletions
|
@ -20,6 +20,12 @@ impl Config {
|
||||||
if cfg.instance.is_empty() {
|
if cfg.instance.is_empty() {
|
||||||
panic!("config.toml not found!")
|
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)
|
Ok(cfg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue