Mercurial Hosting > luan
diff core/src/luan/LuanPropertyMeta.java @ 646:cdc70de628b5
simplify LuanException
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 29 Mar 2016 19:58:39 -0600 |
parents | 60c549d43988 |
children |
line wrap: on
line diff
--- a/core/src/luan/LuanPropertyMeta.java Tue Mar 29 18:09:51 2016 -0600 +++ b/core/src/luan/LuanPropertyMeta.java Tue Mar 29 19:58:39 2016 -0600 @@ -26,7 +26,7 @@ if( obj == null ) return null; if( !(obj instanceof LuanFunction) ) - throw new LuanException(luan,"get for '"+key+"' isn't a function"); + throw new LuanException("get for '"+key+"' isn't a function"); LuanFunction fn = (LuanFunction)obj; return fn.call(luan); } @@ -59,7 +59,7 @@ return; } if( !(obj instanceof LuanFunction) ) - throw new LuanException(luan,"set for '"+key+"' isn't a function"); + throw new LuanException("set for '"+key+"' isn't a function"); LuanFunction fn = (LuanFunction)obj; fn.call(luan,new Object[]{value}); }