More debug logging in timestamp parse

This commit is contained in:
Jan-Henrik 2023-08-06 13:46:58 +02:00
parent a2840ed7d1
commit 8aa0ce996a

View file

@ -62,13 +62,20 @@ async fn convert(url: &str) -> Result<CustomCalendar> {
continue; continue;
}; };
let Ok(start) = convert_time(start) else { let start = match convert_time(start) {
println!("Invalid timestamp"); Ok(t) => { t },
continue; Err(e) => {
println!("Invalid start timestamp: {:?}", e);
continue;
}
}; };
let Ok(end) = convert_time(end) else {
println!("Invalid timestamp"); let end = match convert_time(end) {
continue; Ok(t) => { t },
Err(e) => {
println!("Invalid end timestamp: {:?}", e);
continue;
}
}; };
if start < filter_start || start > filter_end { if start < filter_start || start > filter_end {