~goorzhel/sota-slack-spotter

4cade26cd4a51512754633b628d69ffc9e5ea4e6 — Antonio Gurgel a month ago ad441c6
Again, return Err rather than log it
1 files changed, 3 insertions(+), 3 deletions(-)

M src/tasks.rs
M src/tasks.rs => src/tasks.rs +3 -3
@@ 1,5 1,5 @@
use anyhow::{Context, Result};
use log::{debug, error, info};
use anyhow::{anyhow, Context, Result};
use log::{debug, info};

use crate::{
    activation::Activations,


@@ 59,7 59,7 @@ pub fn fetch_callsigns(slack: &Slack, callsigns: &mut Callsigns) -> Result<usize

    match slack.callsigns() {
        Ok(c) => *callsigns = c,
        Err(e) => error!("Failed to get callsigns: {}", e),
        Err(e) => return Err(anyhow!("Failed to get callsigns: {}", e)),
    };

    let new_len = callsigns.len();