Change to assert invalidity using the lists built by make-errors.pl.

This could be removed later on.