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