diff core/src/luan/impl/BinaryOpExpr.java @ 578:60c549d43988

remove LuanState.exception()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 14 Jul 2015 17:40:48 -0600
parents 4723d22062ce
children 859c0dedc8b6
line wrap: on
line diff
--- a/core/src/luan/impl/BinaryOpExpr.java	Mon Jul 13 20:53:02 2015 -0600
+++ b/core/src/luan/impl/BinaryOpExpr.java	Tue Jul 14 17:40:48 2015 -0600
@@ -24,7 +24,7 @@
 			if( fn != null )
 				return Luan.first(fn.call(luan,new Object[]{o1,o2}));
 			String type = !(o1 instanceof Number) ? Luan.type(o1) : Luan.type(o2);
-			throw luan.exception("attempt to perform arithmetic on a "+type+" value");
+			throw new LuanException(luan,"attempt to perform arithmetic on a "+type+" value");
 		} finally {
 			luan.pop();
 		}