mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Only JSON error if feature dep
This commit is contained in:
@@ -188,8 +188,11 @@ pub enum IdeviceError {
|
|||||||
CdtunnelPacketInvalidMagic,
|
CdtunnelPacketInvalidMagic,
|
||||||
#[error("Proclaimed packet size does not match actual size")]
|
#[error("Proclaimed packet size does not match actual size")]
|
||||||
PacketSizeMismatch,
|
PacketSizeMismatch,
|
||||||
|
|
||||||
|
#[cfg(feature = "core_device_proxy")]
|
||||||
#[error("JSON serialization failed")]
|
#[error("JSON serialization failed")]
|
||||||
Json(#[from] serde_json::Error),
|
Json(#[from] serde_json::Error),
|
||||||
|
|
||||||
#[error("unknown error `{0}` returned from device")]
|
#[error("unknown error `{0}` returned from device")]
|
||||||
UnknownErrorType(String),
|
UnknownErrorType(String),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user