Maybe instead of throwing an error, we can do a log error of the parameter?

Otherwise it can be _ => ()