shithub: 9ferno

Download patch

ref: b42db98c8eccd7c30da56e6098ded287eeee2f27
parent: 2a89e34cd0b8015dc6b8f679e5cc17511a4743ca
author: 9ferno <gophone2015@gmail.com>
date: Thu Aug 26 17:04:29 EDT 2021

more detailed error message

--- a/libinterp/xec.c	Thu Aug 26 17:00:25 2021
+++ b/libinterp/xec.c	Thu Aug 26 17:04:29 2021
@@ -329,7 +329,7 @@
 
 	ml = *(Modlink**)R.s;
 	if(ml == H)
-		error(exModule);
+		errorf("mnewz: %s", exModule);
 	h = heapz(ml->type[W(m)]);
 	wp = R.d;
 	t = *wp;
@@ -373,7 +373,7 @@
 
 	ml = *(Modlink**)R.s;
 	if(ml == H)
-		error(exModule);
+                errorf("mframe: %s", exModule);
 
 	o = W(m);
 	if(o >= 0){
@@ -690,7 +690,7 @@
 
 	ml = *(Modlink**)R.d;
 	if(ml == H)
-		error(exModule);
+                errorf("mspawn: %s", exModule);
 	if(ml->prog == nil)
 		error(exSpawn);
 	p = newprog(currun(), ml);
@@ -800,7 +800,7 @@
 
 	ml = *(Modlink**)R.d;
 	if(ml == H)
-		error(exModule);
+                errorf("mcall: %s", exModule);
 	f = T(s);
 	f->lr = R.PC;
 	f->fp = R.FP;