Mercurial Hosting > luan
diff core/src/luan/Luan.java @ 481:5d4a78c93383
luan errors are now tables
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 11 May 2015 20:26:36 -0600 |
parents | bbad2d06f728 |
children | 0dfc01d8d42d |
line wrap: on
line diff
--- a/core/src/luan/Luan.java Mon May 11 16:43:04 2015 -0600 +++ b/core/src/luan/Luan.java Mon May 11 20:26:36 2015 -0600 @@ -6,16 +6,10 @@ public final class Luan { - public static void main(String[] args) { + public static void main(String[] args) throws LuanException { LuanState luan = LuanState.newInstance(); - try { - LuanFunction standalone = (LuanFunction)BasicLuan.load_file(luan,"classpath:luan/cmd_line.luan",null); - luan.call(standalone,args); - } catch(LuanException e) { - System.err.println(e.getFullMessage()); -// e.printStackTrace(); - System.exit(-1); - } + LuanFunction standalone = (LuanFunction)BasicLuan.load_file(luan,"classpath:luan/cmd_line.luan",null); + luan.call(standalone,args); } public static Object first(Object obj) {