Mercurial Hosting > luan
diff core/src/luan/LuanState.java @ 173:58c6ca5d4524
fix build.sh
git-svn-id: https://luan-java.googlecode.com/svn/trunk@174 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Sun, 22 Jun 2014 07:46:49 +0000 |
parents | 4edbf3204ca6 |
children | cf939124461a |
line wrap: on
line diff
--- a/core/src/luan/LuanState.java Sun Jun 22 06:12:29 2014 +0000 +++ b/core/src/luan/LuanState.java Sun Jun 22 07:46:49 2014 +0000 @@ -122,9 +122,13 @@ return t.put(a[a.length-1],value); } - public final void globalImport(String modName) throws LuanException { - Object mod = PackageLuan.require(this,modName); - global.put(modName,mod); + public final void globalImport(String modName) { + try { + Object mod = PackageLuan.require(this,modName); + global.put(modName,mod); + } catch(LuanException e) { + throw new RuntimeException(e); + } } public static LuanState newStandard() {