Nicer errors for unsupported features.

Also fix typo in classname.