diff --git a/paket/src/ready.rs b/paket/src/ready.rs index db424fb..be2260d 100644 --- a/paket/src/ready.rs +++ b/paket/src/ready.rs @@ -342,10 +342,15 @@ impl Component for Ready { } } Err(err) => { - sender.output(ReadyOutput::Error(err)).unwrap(); + if err == LibraryError::APIChange { + println!("Upstream API for parcel tracking broke"); + sender.input(ReadyInput::ServiceBorked(Services::SendungVerfolgung)); + sender.output(ReadyOutput::Notification("Shipment Tracking API has changed. Deactivating that service.".to_string())).unwrap(); + } else { + sender.output(ReadyOutput::Error(err)).unwrap(); + } } }, } } } -