diff core/src/luan/impl/LuanStateImpl.java @ 646:cdc70de628b5

simplify LuanException
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 29 Mar 2016 19:58:39 -0600
parents 859c0dedc8b6
children 8e8c30b72e9b
line wrap: on
line diff
--- a/core/src/luan/impl/LuanStateImpl.java	Tue Mar 29 18:09:51 2016 -0600
+++ b/core/src/luan/impl/LuanStateImpl.java	Tue Mar 29 19:58:39 2016 -0600
@@ -132,7 +132,7 @@
 		LuanFunction fn = getBinHandler("__lt",o1,o2);
 		if( fn != null )
 			return checkBoolean( Luan.first(fn.call(this,new Object[]{o1,o2})) );
-		throw new LuanException(this, "attempt to compare " + Luan.type(o1) + " with " + Luan.type(o2) );
+		throw new LuanException( "attempt to compare " + Luan.type(o1) + " with " + Luan.type(o2) );
 	}
 
 	LuanFunction getBinHandler(String op,Object o1,Object o2) throws LuanException {