Skip to content

Commit 96cb915

Browse files
committed
Enhance wrongMember error message
1 parent e97a0b5 commit 96cb915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lkql_jit/language/src/main/java/com/adacore/lkql_jit/exception/LKQLRuntimeException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public static LKQLRuntimeException noSuchField(Node location) {
298298
@CompilerDirectives.TruffleBoundary
299299
public static LKQLRuntimeException wrongMember(String member, String type, Node location) {
300300
return LKQLRuntimeException.fromMessage(
301-
"Cannot get member " + member + " for " + type + " value", location);
301+
"Cannot get member `%s` for %s value".formatted(member, type), location);
302302
}
303303

304304
/**

0 commit comments

Comments
 (0)