Skip to content

Commit 230b0b0

Browse files
committed
Show asserted values more
1 parent faa0e1b commit 230b0b0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

vm_core.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,8 @@ rb_current_execution_context(bool expect_ec)
19871987
* To avoid accidents, `GET_EC()` should be called once on the frame.
19881988
* Note that inlining can produce the problem.
19891989
*/
1990-
VM_ASSERT(ec == rb_current_ec_noinline());
1990+
VM_ASSERT(ec == rb_current_ec_noinline(),
1991+
"%d:%p:%p", expect_ec, ec, rb_current_ec_noinline());
19911992
#else
19921993
rb_execution_context_t *ec = native_tls_get(ruby_current_ec_key);
19931994
#endif

0 commit comments

Comments
 (0)