diff core/src/luan/LuanTable.java @ 510:2da0bcb979b5

better error messages
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 22 May 2015 02:28:15 -0600
parents e3b0846dc2ef
children e3fb9768dbb3
line wrap: on
line diff
--- a/core/src/luan/LuanTable.java	Fri May 22 02:02:49 2015 -0600
+++ b/core/src/luan/LuanTable.java	Fri May 22 02:28:15 2015 -0600
@@ -139,7 +139,7 @@
 		else if( bit.el==null )
 			throw bit.exception( "attempt to index a " + Luan.type(obj) + " value" );
 		else
-			throw bit.exception( "attempt to index '"+bit.el.text()+"' (a " + Luan.type(obj) + " value)" );
+			throw bit.exception( "attempt to index a " + Luan.type(obj) + " value in '"+bit.el.text()+"'" );
 	}
 
 	public Object rawGet(Object key) {