vm_setivar_slowpath: improve bug error message

We're occasionally hitting this bug on CI, it would be useful
to see if the id is consistent.
This commit is contained in:
Jean Boussier 2023-11-15 10:40:12 +01:00 committed by Jean Boussier
parent 8f1ec6e171
commit 960a031a06

View File

@ -1420,7 +1420,7 @@ vm_setivar_slowpath(VALUE obj, ID id, VALUE val, const rb_iseq_t *iseq, IVC ic,
populate_cache(index, next_shape_id, id, iseq, ic, cc, is_attr);
}
else {
rb_bug("didn't find the id");
rb_bug("vm_setivar_slowpath: didn't find ivar %s in shape", rb_id2name(id));
}
}