Fix error messages for pass tests.
This commit is contained in:
@@ -21,8 +21,6 @@
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
package org.luaj.vm2;
|
package org.luaj.vm2;
|
||||||
|
|
||||||
import org.luaj.vm2.Varargs;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for all concrete lua type values.
|
* Base class for all concrete lua type values.
|
||||||
* <p>
|
* <p>
|
||||||
@@ -3362,7 +3360,7 @@ public class LuaValue extends Varargs {
|
|||||||
protected LuaValue checkmetatag(LuaValue tag, String reason) {
|
protected LuaValue checkmetatag(LuaValue tag, String reason) {
|
||||||
LuaValue h = this.metatag(tag);
|
LuaValue h = this.metatag(tag);
|
||||||
if ( h.isnil() )
|
if ( h.isnil() )
|
||||||
throw new LuaError(reason+typename());
|
throw new LuaError(reason + "a " + typename() + " value");
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user