Skip to main content

prepare_error

Function prepare_error 

Source
pub fn prepare_error(data: &[u8]) -> (Id<'_>, ErrorCode)
Expand description

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