Skip to content

Commit 8971557

Browse files
authored
Merge pull request #482 from s-hadinger/solidify_upvals_details
Provide details when trying to solidify upvals
2 parents f7e318e + 1831ca2 commit 8971557

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/be_solidifylib.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,8 @@ static void m_solidify_closure(bvm *vm, bbool str_literal, const bclosure *clo,
426426
const char * func_name = str(pr->name);
427427

428428
if (clo->nupvals > 0) {
429-
logfmt("--> Unsupported upvals in closure <---");
429+
const char *name = str(clo->proto->name);
430+
logfmt("--> Unsupported upvals in closure in '%s' <---", name ? name : "<unkown>");
430431
// be_raise(vm, "internal_error", "Unsupported upvals in closure");
431432
}
432433

0 commit comments

Comments
 (0)