diff src/luan/modules/BasicLuan.java @ 1316:11d3640e739d

load_file returns nil for missing file
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 31 Jan 2019 04:26:23 -0700
parents 5345466fa61f
children f41919741100
line wrap: on
line diff
--- a/src/luan/modules/BasicLuan.java	Wed Jan 30 01:21:49 2019 -0700
+++ b/src/luan/modules/BasicLuan.java	Thu Jan 31 04:26:23 2019 -0700
@@ -39,7 +39,7 @@
 		}
 		String src = PackageLuan.read(luan,fileName);
 		if( src == null )
-			throw new LuanException("file '"+fileName+"' not found" );
+			return null;
 		return load(src,fileName,null);
 	}