|
|
@ -42,11 +42,11 @@ pub enum Error {
|
|
|
|
/// `reqwest` crate errors.
|
|
|
|
/// `reqwest` crate errors.
|
|
|
|
#[error(transparent)]
|
|
|
|
#[error(transparent)]
|
|
|
|
Reqwest(#[from] reqwest::Error),
|
|
|
|
Reqwest(#[from] reqwest::Error),
|
|
|
|
/// The platform was not found on the updater JSON response.
|
|
|
|
/// The platform was not found in the updater JSON response.
|
|
|
|
#[error("the platform `{0}` was not found on the response `platforms` object")]
|
|
|
|
#[error("the platform `{0}` was not found in the response `platforms` object")]
|
|
|
|
TargetNotFound(String),
|
|
|
|
TargetNotFound(String),
|
|
|
|
/// Neither the platform not the fallback platform was not found on the updater JSON response.
|
|
|
|
/// Neither the platform not the fallback platform was not found in the updater JSON response.
|
|
|
|
#[error("the platform `{0}` and `{1}` were not found on the response `platforms` object")]
|
|
|
|
#[error("the platform `{0}` and `{1}` were not found in the response `platforms` object")]
|
|
|
|
TargetsNotFound(String, String),
|
|
|
|
TargetsNotFound(String, String),
|
|
|
|
/// Download failed
|
|
|
|
/// Download failed
|
|
|
|
#[error("`{0}`")]
|
|
|
|
#[error("`{0}`")]
|
|
|
|