From fdb8b1f681dae52899dd6f1d66a4fa8791687fd3 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Fri, 14 Sep 2012 15:59:50 +0200 Subject: [PATCH] Bug 8743 follow-up, throw a more explanatory error message When testing bug 8743, I discovered a missing index in my authority file. The error message was "CCL parsing error (10014) Unknown qualifier ZOOM" which is not very helpfull because it does not show the query that was made. This patch add the query itself after the zebra error Signed-off-by: Chris Cormack --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 14a5d00108..f75f484a2f 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -248,7 +248,7 @@ sub SimpleSearch { . $@->code() . ") " . $@->addinfo() . " " . $@->diagset(); - warn $error; + warn $error." for query: $query"; return ( $error, undef, undef ); } } -- 2.39.5