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