pub fn make_extension_error(code: &str, detail: Option<&str>) -> RpError