Improve error message
Merge pull request #728 from weismat/master

Improve error message for schema Issue 727