More informative error message

If you have many models, it's useful to know which one is badly configured :)