From f1b199f6c4e5783bd13f937100e86a3cb68b415c Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Tue, 8 Jul 2014 19:38:41 +0400 Subject: [PATCH] Minor, add assertion message to CodegenContext --- .../src/org/jetbrains/jet/codegen/context/CodegenContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/backend/src/org/jetbrains/jet/codegen/context/CodegenContext.java b/compiler/backend/src/org/jetbrains/jet/codegen/context/CodegenContext.java index 0fd406d49fb..93eb97144f8 100644 --- a/compiler/backend/src/org/jetbrains/jet/codegen/context/CodegenContext.java +++ b/compiler/backend/src/org/jetbrains/jet/codegen/context/CodegenContext.java @@ -83,7 +83,7 @@ public abstract class CodegenContext { @NotNull public final ClassDescriptor getThisDescriptor() { if (thisDescriptor == null) { - throw new UnsupportedOperationException(); + throw new UnsupportedOperationException("Context doesn't have a \"this\": " + this); } return thisDescriptor; }