Mercurial Hosting > luan
diff core/src/luan/impl/ThemeParser.java @ 646:cdc70de628b5
simplify LuanException
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 29 Mar 2016 19:58:39 -0600 |
parents | 859c0dedc8b6 |
children | b438a47196bc |
line wrap: on
line diff
--- a/core/src/luan/impl/ThemeParser.java Tue Mar 29 18:09:51 2016 -0600 +++ b/core/src/luan/impl/ThemeParser.java Tue Mar 29 19:58:39 2016 -0600 @@ -21,7 +21,7 @@ return new Closure(luanImpl,fnDef); } catch(ParseException e) { //e.printStackTrace(); - throw new LuanException(luan, e.getFancyMessage() ); + throw new LuanException( e.getFancyMessage() ); } } @@ -202,7 +202,7 @@ @Override public Object eval(LuanStateImpl luan) throws LuanException { Object obj = env.eval(luan); if( !(obj instanceof LuanTable) ) - throw new LuanException(luan,"bad argument (table expected, got "+Luan.type(obj)+")"); + throw new LuanException("bad argument (table expected, got "+Luan.type(obj)+")"); LuanTable tbl = (LuanTable)obj; String indent = (String)tbl.get(luan,INDENT); if( indent==null ) throw new NullPointerException();