From 32d5e9c15e3427005ce338cdaa88c69823df2b2c Mon Sep 17 00:00:00 2001 From: Ian Farmer Date: Thu, 17 Jan 2008 00:36:20 +0000 Subject: [PATCH] Fix the bug where the wrong file/line# is reported on attempts to index nil. --- src/core/org/luaj/vm/LValue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/org/luaj/vm/LValue.java b/src/core/org/luaj/vm/LValue.java index 011099eb..60d44f1f 100644 --- a/src/core/org/luaj/vm/LValue.java +++ b/src/core/org/luaj/vm/LValue.java @@ -47,7 +47,7 @@ public class LValue { } private void indexError(LuaState vm, LValue nontable) { - vm.error( "attempt to index ? (a "+nontable.luaGetTypeName()+" value)", 2 ); + vm.error( "attempt to index ? (a "+nontable.luaGetTypeName()+" value)", 1 ); } public String id() {