Only JSON error if feature dep

This commit is contained in:
Jackson Coxson
2025-01-26 20:03:46 -07:00
parent c84cae6f5b
commit b226edc3bc

View File

@@ -188,8 +188,11 @@ pub enum IdeviceError {
CdtunnelPacketInvalidMagic,
#[error("Proclaimed packet size does not match actual size")]
PacketSizeMismatch,
#[cfg(feature = "core_device_proxy")]
#[error("JSON serialization failed")]
Json(#[from] serde_json::Error),
#[error("unknown error `{0}` returned from device")]
UnknownErrorType(String),
}