Better error message on non-schema schema