pub fn invalid_params_check<T, E>(
    param: &str,
    r: Result<T, E>
) -> Result<T, Error>
where E: Display,