Skip to main content

prepare_error

Function prepare_error 

Source
pub fn prepare_error(data: &[u8]) -> (Id<'_>, ErrorCode)
Available on crate feature server only.
Expand description

Distinguish malformed JSON from an invalid request and recover its [Id] when possible.