fix misleading deprecation messages

These are errors, not deprecations, and that should be reflected in the message.