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

remove LuanState.exception()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 14 Jul 2015 17:40:48 -0600
parents d7a85fbe15f1
children 859c0dedc8b6
line wrap: on
line diff
--- a/core/src/luan/impl/FnCall.java	Mon Jul 13 20:53:02 2015 -0600
+++ b/core/src/luan/impl/FnCall.java	Tue Jul 14 17:40:48 2015 -0600
@@ -36,7 +36,7 @@
 				if( h != null )
 					return call(luan,h,argVals);
 			}
-			throw luan.exception( "attempt to call '"+fnName+"' (a " + Luan.type(o) + " value)" );
+			throw new LuanException(luan, "attempt to call '"+fnName+"' (a " + Luan.type(o) + " value)" );
 		} finally {
 			luan.pop();
 		}