mirror of
https://github.com/jhbruhn/ics-adapter.git
synced 2025-03-15 03:25:49 +00:00
More debug logging in timestamp parse
This commit is contained in:
parent
a2840ed7d1
commit
8aa0ce996a
1 changed files with 13 additions and 6 deletions
19
src/main.rs
19
src/main.rs
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue