Raise type error on schema fail