Improve error message for schema Issue 727