A simple way to generate nice error messages for named parameters