This error complains about the method now, not the file

Still kind of fragile.  Should probably use some shared enum-ish thing.

This fixes failing tests.