Minor. Better assertion message

This commit is contained in:
Andrey Breslav
2014-03-28 21:49:59 +04:00
parent d909a03453
commit b48d9884ee
@@ -83,7 +83,7 @@ public class PropertyCodegen extends GenerationStateAware {
public void gen(@NotNull JetProperty property) {
VariableDescriptor variableDescriptor = bindingContext.get(BindingContext.VARIABLE, property);
assert variableDescriptor instanceof PropertyDescriptor : "Property should have a property descriptor: " + variableDescriptor;
assert variableDescriptor instanceof PropertyDescriptor : "Property " + property.getText() + " should have a property descriptor: " + variableDescriptor;
PropertyDescriptor propertyDescriptor = (PropertyDescriptor) variableDescriptor;
gen(property, propertyDescriptor, property.getGetter(), property.getSetter());