diff --git a/vm/module.c b/vm/module.c index 78198f76..a76fd1d9 100644 --- a/vm/module.c +++ b/vm/module.c @@ -545,7 +545,7 @@ neko_module *neko_read_module( reader r, readp p, value loader ) { memset(stmp,UNKNOWN,m->codesize+1); if( !vm->trusted_code && !neko_check_stack(m,stmp,0,0,0) ) { free(stmp); - ERROR(); + failure("Stack check failed for global scope"); } for(i=0;inglobals;i++) { vfunction *f = (vfunction*)m->globals[i]; @@ -557,7 +557,7 @@ neko_module *neko_read_module( reader r, readp p, value loader ) { } if( !vm->trusted_code && !neko_check_stack(m,stmp,itmp,f->nargs,f->nargs) ) { free(stmp); - ERROR(); + failure("Stack check failed for function scope"); } f->addr = m->code + itmp; prev = itmp;