From 1648ce02e4909b932a908beaeae93fd41515b9e5 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 25 Jan 2007 11:28:40 +0000 Subject: [PATCH] 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. --- src/filter_virt_db.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.10.4