mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 06:26:15 +01:00
Include InvalidArgument with afc and installation_proxy features (#29)
This commit is contained in:
@@ -692,7 +692,10 @@ pub enum IdeviceError {
|
||||
#[error("failed to parse bytes as valid utf8")]
|
||||
Utf8Error = -56,
|
||||
|
||||
#[cfg(feature = "debug_proxy")]
|
||||
#[cfg(any(
|
||||
feature = "debug_proxy",
|
||||
all(feature = "afc", feature = "installation_proxy")
|
||||
))]
|
||||
#[error("invalid argument passed")]
|
||||
InvalidArgument = -57,
|
||||
|
||||
@@ -861,7 +864,10 @@ impl IdeviceError {
|
||||
IdeviceError::NotEnoughBytes(_, _) => -55,
|
||||
IdeviceError::Utf8Error => -56,
|
||||
|
||||
#[cfg(feature = "debug_proxy")]
|
||||
#[cfg(any(
|
||||
feature = "debug_proxy",
|
||||
all(feature = "afc", feature = "installation_proxy")
|
||||
))]
|
||||
IdeviceError::InvalidArgument => -57,
|
||||
|
||||
IdeviceError::UnknownErrorType(_) => -59,
|
||||
|
||||
Reference in New Issue
Block a user