changeset 5306:70d5dc1b5663

search.Xapian.indexing: added rebuild to the ValueError message
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 22 Nov 2009 23:45:34 +0100
parents 80c6a674a826
children 7d2f09628678
files MoinMoin/search/Xapian/indexing.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/Xapian/indexing.py	Sun Nov 22 23:27:35 2009 +0100
+++ b/MoinMoin/search/Xapian/indexing.py	Sun Nov 22 23:45:34 2009 +0100
@@ -238,7 +238,7 @@
         elif mode == 'add':
             do_index = True
         else:
-            raise ValueError("mode must be 'update' or 'add'")
+            raise ValueError("mode must be 'rebuild' or 'update' or 'add'")
 
         if do_index:
             document = xappy.UnprocessedDocument()