[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sup-devel] [PATCH] catch xapian query parser exceptions and display them to the user



Hi,

a query such as "NOT label:debian" will generate an error in the xapian query
parser. Instead of crashing, the user should see the error message to get his
query right. The attached patch fixes this.

Please note that the appropriate type instead of RuntimeError would be
Xapian::QueryParserError, but the latter is not defined for some reason. A
problem with the xapian ruby bindings?

Best regards,
Michael

Attachment: 0001-xapian.patch
Description: Binary data

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel