mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Add device locked error type
This commit is contained in:
@@ -423,6 +423,10 @@ pub enum IdeviceError {
|
||||
#[error("user denied pairing trust")]
|
||||
UserDeniedPairing,
|
||||
|
||||
#[cfg(feature = "pair")]
|
||||
#[error("device is locked")]
|
||||
PasswordProtected,
|
||||
|
||||
#[cfg(feature = "misagent")]
|
||||
#[error("misagent operation failed")]
|
||||
MisagentFailure,
|
||||
@@ -510,6 +514,8 @@ impl IdeviceError {
|
||||
"PairingDialogResponsePending" => Some(Self::PairingDialogResponsePending),
|
||||
#[cfg(feature = "pair")]
|
||||
"UserDeniedPairing" => Some(Self::UserDeniedPairing),
|
||||
#[cfg(feature = "pair")]
|
||||
"PasswordProtected" => Some(Self::PasswordProtected),
|
||||
"InternalError" => {
|
||||
let detailed_error = context
|
||||
.get("DetailedError")
|
||||
|
||||
Reference in New Issue
Block a user