diff src/luan/host/Backup.java @ 1187:83c8a5a47f70

fixes for luanhost
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 22 Feb 2018 18:38:45 -0700
parents 94cf2576a922
children d41997776788
line wrap: on
line diff
--- a/src/luan/host/Backup.java	Wed Feb 21 21:50:20 2018 -0700
+++ b/src/luan/host/Backup.java	Thu Feb 22 18:38:45 2018 -0700
@@ -69,7 +69,7 @@
 				luceneInstances = (LuanTable)luan.eval(getLucenes);
 			}
 		} catch(LuanException e) {
-			throw new RuntimeException(e);
+			throw new RuntimeException(from.getName(),e);
 		}
 		for( Map.Entry entry : luceneInstances.rawIterable() ) {
 			LuanTable tbl = (LuanTable)entry.getKey();
@@ -106,6 +106,7 @@
 
 	public static void main(String[] args) throws Exception {
 		Log4j.initForConsole();
+		WebHandler.allowJavaFileName = args[2];
 		backup( new File(args[0]), new File(args[1]) );
 		System.exit(0);
 	}