From: Adam Dickmeiss Date: Thu, 25 Jan 2007 11:28:40 +0000 (+0000) Subject: Return diagnostic "Database does not exist" (235), when a database is selected X-Git-Tag: METAPROXY.1.0.8~10 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=1648ce02e4909b932a908beaeae93fd41515b9e5;p=metaproxy-moved-to-github.git Return diagnostic "Database does not exist" (235), when a database is selected which is not even configured. Filter returns "Database unavailable" if a backend session could not be initiated. --- diff --git a/src/filter_virt_db.cpp b/src/filter_virt_db.cpp index daf43f3..b3975ef 100644 --- a/src/filter_virt_db.cpp +++ b/src/filter_virt_db.cpp @@ -1,4 +1,4 @@ -/* $Id: filter_virt_db.cpp,v 1.47 2006-11-29 13:00:54 marc Exp $ +/* $Id: filter_virt_db.cpp,v 1.48 2007-01-25 11:28:40 adam Exp $ Copyright (c) 2005-2006, Index Data. See the LICENSE file for details @@ -133,7 +133,7 @@ yf::VirtualDB::BackendPtr yf::VirtualDB::Frontend::create_backend_from_databases map_it = m_p->m_maps.find(mp::util::database_name_normalize(*db_it)); if (map_it == m_p->m_maps.end()) // database not found { - error_code = YAZ_BIB1_DATABASE_UNAVAILABLE; + error_code = YAZ_BIB1_DATABASE_DOES_NOT_EXIST; addinfo = *db_it; BackendPtr ptr; return ptr;