diff --git a/src/config.rs b/src/config.rs index 16f63a0a10bd05e268d587664d04dfc5e0b8ccf6..b9ecded3c145479716c64d2d8da616ac72988c98 100644 --- a/src/config.rs +++ b/src/config.rs @@ -35,7 +35,11 @@ pub struct Config { impl Config { pub fn load() -> anyhow::Result<Self> { let file_contents = read_conf_file()?; - let config = toml::from_str(&file_contents).context("parsing config file")?; + let config: Self = toml::from_str(&file_contents).context("parsing config file")?; + + if config.callsign == "CHANGEME" { + bail!("Callsign is not configured in config file"); + } Ok(config) }