comparison src/luan/LuanException.java @ 1618:a37ffe2d1b14

fix not_found_handler
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 14 Jun 2021 18:45:17 -0600
parents a9ff30fb5d89
children 46cf5137cb6b
comparison
equal deleted inserted replaced
1617:d88fb2eb15aa 1618:a37ffe2d1b14
49 49
50 public LuanTable table(Luan luan) { 50 public LuanTable table(Luan luan) {
51 if( table==null ) { 51 if( table==null ) {
52 try { 52 try {
53 LuanTable Boot = (LuanTable)luan.require("luan:Boot.luan"); 53 LuanTable Boot = (LuanTable)luan.require("luan:Boot.luan");
54 table = (LuanTable)Boot.fn("new_error_table").call(luan,this ); 54 table = (LuanTable)Boot.fn(luan,"new_error_table").call(luan,this );
55 for( Object stupid : extra.entrySet() ) { 55 for( Object stupid : extra.entrySet() ) {
56 Map.Entry entry = (Map.Entry)stupid; 56 Map.Entry entry = (Map.Entry)stupid;
57 table.put( luan, entry.getKey(), entry.getValue() ); 57 table.put( luan, entry.getKey(), entry.getValue() );
58 } 58 }
59 } catch(LuanException e) { 59 } catch(LuanException e) {