pub fn try_serialize_error(e: &Error) -> Result<String>