pub fn invalid_params_detail<T>(param: &str, details: T) -> Error
where T: Debug,