Skip to content

Commit 4f9013a

Browse files
committed
add debug_name to "cannot iterate X with Y REPR" message
1 parent fbe9e24 commit 4f9013a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/6model/reprs/MVMIter.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ MVMObject * MVM_iter(MVMThreadContext *tc, MVMObject *target) {
301301
iterator = (MVMIter *)MVM_iter(tc, ctx_hash);
302302
}
303303
else {
304-
MVM_exception_throw_adhoc(tc, "Cannot iterate object with %s representation",
305-
REPR(target)->name);
304+
MVM_exception_throw_adhoc(tc, "Cannot iterate object with %s representation (%s)",
305+
REPR(target)->name, STABLE(target)->debug_name);
306306
}
307307
});
308308
return (MVMObject *)iterator;

0 commit comments

Comments
 (0)