add rule names to errors

There probably is a better way to do this, but this is what was easy.