Add ApplicationVerificationFailed to list of known errors (#72)

* Add ApplicationVerificationFailed to list of known errors

* Add missing cfg directive
This commit is contained in:
Nicholas Sharp
2026-02-16 21:11:54 -05:00
committed by GitHub
parent b459eebe9d
commit 1f7924b773

View File

@@ -869,6 +869,10 @@ pub enum IdeviceError {
#[cfg(feature = "notification_proxy")]
#[error("notification proxy died")]
NotificationProxyDeath = -69,
#[cfg(feature = "installation_proxy")]
#[error("Application verification failed: {0}")]
ApplicationVerificationFailed(String) = -70,
}
impl IdeviceError {
@@ -912,6 +916,15 @@ impl IdeviceError {
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,
}
}
@@ -1037,6 +1050,9 @@ impl IdeviceError {
#[cfg(feature = "notification_proxy")]
IdeviceError::NotificationProxyDeath => -69,
#[cfg(feature = "installation_proxy")]
IdeviceError::ApplicationVerificationFailed(_) => -70,
}
}
}