mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Set FFI error message to formatted error string
This commit is contained in:
@@ -35,7 +35,7 @@ macro_rules! ffi_err {
|
||||
|
||||
let err: IdeviceError = $err.into();
|
||||
let code = err.code();
|
||||
let msg = CString::new(err.to_string())
|
||||
let msg = CString::new(format!("{:?}", err))
|
||||
.unwrap_or_else(|_| CString::new("invalid error").unwrap());
|
||||
let raw_msg = msg.into_raw();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user