diff core/src/luan/modules/PackageLuan.java @ 646:cdc70de628b5

simplify LuanException
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 29 Mar 2016 19:58:39 -0600
parents 859c0dedc8b6
children ca169567ce07
line wrap: on
line diff
--- a/core/src/luan/modules/PackageLuan.java	Tue Mar 29 18:09:51 2016 -0600
+++ b/core/src/luan/modules/PackageLuan.java	Tue Mar 29 19:58:39 2016 -0600
@@ -34,7 +34,7 @@
 	public static Object require(LuanState luan,String modName) throws LuanException {
 		Object mod = load(luan,modName);
 		if( mod==null )
-			throw new LuanException(luan, "module '"+modName+"' not found" );
+			throw new LuanException( "module '"+modName+"' not found" );
 		return mod;
 	}
 
@@ -56,7 +56,7 @@
 					mod = loaded.rawGet(modName);
 					if( mod != null )
 						return mod;
-					throw new LuanException(luan, "module '"+modName+"' returned nil" );
+					throw new LuanException( "module '"+modName+"' returned nil" );
 				}
 			}
 			loaded.rawPut(modName,mod);