From: Adam Dickmeiss Date: Wed, 25 Apr 2012 14:19:41 +0000 (+0200) Subject: zoom: use other diagnostic if Torus server is unavailable X-Git-Tag: v1.3.34~3 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=cd9adbc2242f5e6df96c384fab647b5a68273b71;p=metaproxy-moved-to-github.git zoom: use other diagnostic if Torus server is unavailable --- diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index dabbc83..481ad35 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -1149,8 +1149,9 @@ yf::Zoom::BackendPtr yf::Zoom::Frontend::get_backend_from_databases( realm, m_p->proxy); if (!doc) { - *error = YAZ_BIB1_DATABASE_DOES_NOT_EXIST; - *addinfo = odr_strdup(odr, torus_db.c_str()); + *error = YAZ_BIB1_UNSPECIFIED_ERROR; + *addinfo = odr_strdup(odr, "Torus server unavailable or " + "incorrectly configured"); BackendPtr b; return b; } @@ -1843,8 +1844,8 @@ yf::Zoom::BackendPtr yf::Zoom::Frontend::explain_search(mp::Package &package, if (!doc) { *error = YAZ_BIB1_UNSPECIFIED_ERROR; - *addinfo = odr_strdup(odr, "IR-Explain---1 problem. " - "Could not obtain Torus records for Explain"); + *addinfo = odr_strdup(odr, "Torus server unavailable or " + "incorrectly configured"); } else {