More informative error message

If you have many models, it's useful to know which one is badly configured :)
Merge pull request #722 from loostro/master

More informative error message