diff lucene/src/luan/modules/lucene/LuceneWriter.java @ 323:cd2924a1052c

improve testing git-svn-id: https://luan-java.googlecode.com/svn/trunk@324 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 09 Feb 2015 04:33:21 +0000
parents ef39bc4d3f70
children 23b99a5039b5
line wrap: on
line diff
--- a/lucene/src/luan/modules/lucene/LuceneWriter.java	Sun Feb 08 22:03:27 2015 +0000
+++ b/lucene/src/luan/modules/lucene/LuceneWriter.java	Mon Feb 09 04:33:21 2015 +0000
@@ -59,7 +59,7 @@
 
 	public void save_document(LuanState luan,LuanTable doc) throws LuanException, IOException {
 		if( doc.get("type")==null )
-			throw luan.exception("missing 'type'");
+			throw luan.exception("missing 'type' field");
 		String id = (String)doc.get("id");
 		if( id == null ) {
 			id = nextId(luan);