Potential Bugfix whereby the code threw an otherwise unexplained error

This commit is contained in:
Neshura 2023-12-29 01:56:48 +01:00
parent 6588bf20a5
commit 0a9eba9732
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
3 changed files with 4 additions and 16 deletions

View file

@ -559,17 +559,7 @@ fn main() {
ips.update();
for zone in &zone_cfgs {
let cf_zone = match CloudflareZone::new(zone, &config) {
Ok(data) => data,
Err(e) => {
let err_msg = format!("Cloudflare Token likely not set. Error: {}", e);
match connected_to_journal() {
true => error!("[ERROR] {err_msg}"),
false => eprintln!("[ERROR] {err_msg}"),
}
continue
}
};
let cf_zone = CloudflareZone::new(zone, &config);
let cf_entries = match cf_zone.get_entries() {
Ok(entries) => entries,