comparison src/luan/modules/PackageLuan.java @ 1618:a37ffe2d1b14

fix not_found_handler
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 14 Jun 2021 18:45:17 -0600
parents 2975c932864d
children
comparison
equal deleted inserted replaced
1617:d88fb2eb15aa 1618:a37ffe2d1b14
102 } catch(LuanException e) { 102 } catch(LuanException e) {
103 throw new RuntimeException(e); 103 throw new RuntimeException(e);
104 } 104 }
105 Luan.Security security = Luan.setSecurity(luan,null); 105 Luan.Security security = Luan.setSecurity(luan,null);
106 try { 106 try {
107 return (String)Luan.first(boot.fn("read").call(luan,uri,options)); 107 return (String)Luan.first(boot.fn(luan,"read").call(luan,uri,options));
108 } catch(LuanException e) { 108 } catch(LuanException e) {
109 return null; 109 return null;
110 } finally { 110 } finally {
111 if( security != null ) 111 if( security != null )
112 Luan.setSecurity(luan,security); 112 Luan.setSecurity(luan,security);