Mercurial Hosting > luan
diff src/luan/interp/IndexExpr.java @ 56:c84274b18f0c
various
git-svn-id: https://luan-java.googlecode.com/svn/trunk@57 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 04 Jan 2013 21:35:55 +0000 |
parents | 8ede219cd111 |
children | 6ca02b188dba |
line wrap: on
line diff
--- a/src/luan/interp/IndexExpr.java Fri Jan 04 04:50:18 2013 +0000 +++ b/src/luan/interp/IndexExpr.java Fri Jan 04 21:35:55 2013 +0000 @@ -30,7 +30,7 @@ } else { h = luan.getHandler("__index",t); if( h==null ) - throw new LuanException( luan, se, "attempt to index a " + Luan.type(t) + " value" ); + throw new LuanException( luan, op1.se(), "attempt to index '"+op1.se().text()+"' (a " + Luan.type(t) + " value)" ); } if( h instanceof LuanFunction ) { LuanFunction fn = (LuanFunction)h;