Fix error messages for pass tests.

This commit is contained in:
Enyby
2019-03-09 23:35:22 +02:00
parent 898208365d
commit 84b0dd171e

View File

@@ -21,8 +21,6 @@
******************************************************************************/
package org.luaj.vm2;
import org.luaj.vm2.Varargs;
/**
* Base class for all concrete lua type values.
* <p>
@@ -3362,7 +3360,7 @@ public class LuaValue extends Varargs {
protected LuaValue checkmetatag(LuaValue tag, String reason) {
LuaValue h = this.metatag(tag);
if ( h.isnil() )
throw new LuaError(reason+typename());
throw new LuaError(reason + "a " + typename() + " value");
return h;
}