diff core/src/luan/impl/SetTableEntry.java @ 186:cf939124461a

don't import modules by default git-svn-id: https://luan-java.googlecode.com/svn/trunk@187 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 26 Jun 2014 00:36:50 +0000
parents 3dcb0f9bee82
children b76fcb72d97d
line wrap: on
line diff
--- a/core/src/luan/impl/SetTableEntry.java	Wed Jun 25 07:06:16 2014 +0000
+++ b/core/src/luan/impl/SetTableEntry.java	Thu Jun 26 00:36:50 2014 +0000
@@ -35,7 +35,7 @@
 		} else {
 			h = luan.getHandler("__newindex",t);
 			if( h==null )
-				throw luan.bit(se).exception( "attempt to index a " + Luan.type(t) + " value" );
+				throw luan.bit(se).exception( "attempt to index '"+tableExpr.se().text()+"' (a " + Luan.type(t) + " value)" );
 		}
 		if( h instanceof LuanFunction ) {
 			LuanFunction fn = (LuanFunction)h;