Mercurial Hosting > luan
diff lucene/src/luan/modules/lucene/LuceneSearcher.java @ 481:5d4a78c93383
luan errors are now tables
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 11 May 2015 20:26:36 -0600 |
parents | dae264ad6a7b |
children | c5a93767cc5c |
line wrap: on
line diff
--- a/lucene/src/luan/modules/lucene/LuceneSearcher.java Mon May 11 16:43:04 2015 -0600 +++ b/lucene/src/luan/modules/lucene/LuceneSearcher.java Mon May 11 20:26:36 2015 -0600 @@ -92,12 +92,14 @@ Collector col = new MyCollector() { @Override public void collect(int doc) { try { - LuanTable docTbl = doc(luan,docBase+doc); - luan.call(fn,new Object[]{docTbl}); + try { + LuanTable docTbl = doc(luan,docBase+doc); + luan.call(fn,new Object[]{docTbl}); + } catch(IOException e) { + throw luan.exception(e); + } } catch(LuanException e) { throw new LuanRuntimeException(e); - } catch(IOException e) { - throw new LuanRuntimeException(luan.exception(e)); } } };