diff --git a/src/vm/jvm/runtime/org/perl6/nqp/sixmodel/reprs/CStruct.java b/src/vm/jvm/runtime/org/perl6/nqp/sixmodel/reprs/CStruct.java index a5437c87c3..17d5909608 100644 --- a/src/vm/jvm/runtime/org/perl6/nqp/sixmodel/reprs/CStruct.java +++ b/src/vm/jvm/runtime/org/perl6/nqp/sixmodel/reprs/CStruct.java @@ -112,7 +112,8 @@ private void generateStructClass(ThreadContext tc, STable st, List fie int attributes = fields.size(); if (attributes == 0) { - ExceptionHandling.dieInternal(tc, "Class " + Ops.typeName(st.WHAT, tc) + " has repr CStruct but no fields"); + ExceptionHandling.dieInternal(tc, + "Class " + Ops.typeName(st.WHAT, tc) + " has no attributes, which is illegal with the CStruct representation."); } // public $className extends com.sun.jna.Structure implements com.sun.jna.Structure.ByReference { ... }