Mercurial Hosting > luan
comparison src/luan/tools/CmdLine.java @ 42:786699c78837
implement try-catch
git-svn-id: https://luan-java.googlecode.com/svn/trunk@43 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Sun, 23 Dec 2012 06:36:56 +0000 |
parents | e3624b7cd603 |
children | 80b67b1a653c |
comparison
equal
deleted
inserted
replaced
41:c53dc854e6cc | 42:786699c78837 |
---|---|
73 lua.global().put("arg",argsTable); | 73 lua.global().put("arg",argsTable); |
74 try { | 74 try { |
75 LuaFunction fn = BasicLib.load_file(lua,file); | 75 LuaFunction fn = BasicLib.load_file(lua,file); |
76 lua.call(fn,null,null,varArgs); | 76 lua.call(fn,null,null,varArgs); |
77 } catch(LuaException e) { | 77 } catch(LuaException e) { |
78 System.err.println(e); | 78 System.err.println("error: "+e.getMessage()); |
79 // e.printStackTrace(); | 79 // e.printStackTrace(); |
80 System.exit(-1); | 80 System.exit(-1); |
81 } | 81 } |
82 } | 82 } |
83 if( interactive ) | 83 if( interactive ) |