Potential Bugfix whereby the code threw an otherwise unexplained error
This commit is contained in:
parent
6588bf20a5
commit
0a9eba9732
3 changed files with 4 additions and 16 deletions
src
12
src/main.rs
12
src/main.rs
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue