aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/shedlang/compiler/typechecker/errors/NoSuchFieldError.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/shedlang/compiler/typechecker/errors/NoSuchFieldError.java b/src/main/java/org/shedlang/compiler/typechecker/errors/NoSuchFieldError.java
index 91e067ac..ce18ebb3 100644
--- a/src/main/java/org/shedlang/compiler/typechecker/errors/NoSuchFieldError.java
+++ b/src/main/java/org/shedlang/compiler/typechecker/errors/NoSuchFieldError.java
@@ -9,7 +9,7 @@ public class NoSuchFieldError extends SourceError {
private final String fieldName;
public NoSuchFieldError(Type type, String fieldName, Source source) {
- super("No field named " + fieldName + " on type " + type, source);
+ super("No field named " + fieldName + " on type " + type.describe(), source);
this.type = type;
this.fieldName = fieldName;
}