mirror of
https://github.com/jhbruhn/ics-adapter.git
synced 2025-03-14 19:15:50 +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;
|
||||
};
|
||||
|
||||
let Ok(start) = convert_time(start) else {
|
||||
println!("Invalid timestamp");
|
||||
continue;
|
||||
let start = match convert_time(start) {
|
||||
Ok(t) => { t },
|
||||
Err(e) => {
|
||||
println!("Invalid start timestamp: {:?}", e);
|
||||
continue;
|
||||
}
|
||||
};
|
||||
let Ok(end) = convert_time(end) else {
|
||||
println!("Invalid timestamp");
|
||||
continue;
|
||||
|
||||
let end = match convert_time(end) {
|
||||
Ok(t) => { t },
|
||||
Err(e) => {
|
||||
println!("Invalid end timestamp: {:?}", e);
|
||||
continue;
|
||||
}
|
||||
};
|
||||
|
||||
if start < filter_start || start > filter_end {
|
||||
|
|
Loading…
Reference in a new issue