mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Add ApplicationVerificationFailed to list of known errors (#72)
* Add ApplicationVerificationFailed to list of known errors * Add missing cfg directive
This commit is contained in:
@@ -869,6 +869,10 @@ pub enum IdeviceError {
|
|||||||
#[cfg(feature = "notification_proxy")]
|
#[cfg(feature = "notification_proxy")]
|
||||||
#[error("notification proxy died")]
|
#[error("notification proxy died")]
|
||||||
NotificationProxyDeath = -69,
|
NotificationProxyDeath = -69,
|
||||||
|
|
||||||
|
#[cfg(feature = "installation_proxy")]
|
||||||
|
#[error("Application verification failed: {0}")]
|
||||||
|
ApplicationVerificationFailed(String) = -70,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl IdeviceError {
|
impl IdeviceError {
|
||||||
@@ -912,6 +916,15 @@ impl IdeviceError {
|
|||||||
Some(Self::InternalError(detailed_error))
|
Some(Self::InternalError(detailed_error))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#[cfg(feature = "installation_proxy")]
|
||||||
|
"ApplicationVerificationFailed" => {
|
||||||
|
let msg = context
|
||||||
|
.get("ErrorDescription")
|
||||||
|
.and_then(|x| x.as_string())
|
||||||
|
.unwrap_or("No context")
|
||||||
|
.to_string();
|
||||||
|
Some(Self::ApplicationVerificationFailed(msg))
|
||||||
|
}
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1037,6 +1050,9 @@ impl IdeviceError {
|
|||||||
|
|
||||||
#[cfg(feature = "notification_proxy")]
|
#[cfg(feature = "notification_proxy")]
|
||||||
IdeviceError::NotificationProxyDeath => -69,
|
IdeviceError::NotificationProxyDeath => -69,
|
||||||
|
|
||||||
|
#[cfg(feature = "installation_proxy")]
|
||||||
|
IdeviceError::ApplicationVerificationFailed(_) => -70,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user