[−][src]Function indy_crypto::ffi::indy_crypto_get_current_error
#[no_mangle]pub extern "C" fn indy_crypto_get_current_error(
error_json_p: *mut *const c_char
)
Get details for last occurred error.
NOTE: Error is stored until the next one occurs. Returning pointer has the same lifetime.
#Params
error_json_p
- Reference that will contain error details (if any error has occurred before) in the format: { "backtrace": Optional- error backtrace. Collecting of backtrace can be enabled by setting environment variable RUST_BACKTRACE=1
"message": str - human-readable error description }