Minor, add assertion message to CodegenContext

This commit is contained in:
Alexander Udalov
2014-07-08 19:38:41 +04:00
parent 947c9fb1bf
commit f1b199f6c4
@@ -83,7 +83,7 @@ public abstract class CodegenContext<T extends DeclarationDescriptor> {
@NotNull @NotNull
public final ClassDescriptor getThisDescriptor() { public final ClassDescriptor getThisDescriptor() {
if (thisDescriptor == null) { if (thisDescriptor == null) {
throw new UnsupportedOperationException(); throw new UnsupportedOperationException("Context doesn't have a \"this\": " + this);
} }
return thisDescriptor; return thisDescriptor;
} }