Fixed exception message when resolving model_attr

Should make it easier to debug