diff src/luan/modules/ThreadLuan.java @ 1166:7ef40e1923b7

add back Thread.global allow metatables to have metatables
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 08 Feb 2018 02:22:51 -0700
parents 3ef883468fd0
children d3a3ca116e42
line wrap: on
line diff
--- a/src/luan/modules/ThreadLuan.java	Wed Feb 07 23:16:12 2018 -0700
+++ b/src/luan/modules/ThreadLuan.java	Thu Feb 08 02:22:51 2018 -0700
@@ -1,6 +1,7 @@
 package luan.modules;
 
 import java.io.Closeable;
+import java.util.Arrays;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.HashMap;
@@ -140,7 +141,7 @@
 
 		public synchronized Object call(String fnName,Object... args) throws LuanException {
 			if( !isPrimitive(args) )
-				throw new LuanException("can't pass non-primitive type to global_callable");
+				throw new LuanException("can't pass non-primitive type to global_callable "+Arrays.asList(args));
 			Object f = fns.get(luan,fnName);
 			if( f == null )
 				throw new LuanException("function '"+fnName+"' not found in global_callable");