X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fmetaproxy_prog.cpp;h=9f144b7315924efcba62d4086d13313c19539562;hb=e6d572ef110d14fa55115021505b808620457bd3;hp=47f84ab7776ea025cd5f00118319748f5f574f4e;hpb=d0123337d70b0fb97b578cc57467bb94980f1014;p=metaproxy-moved-to-github.git diff --git a/src/metaproxy_prog.cpp b/src/metaproxy_prog.cpp index 47f84ab..9f144b7 100644 --- a/src/metaproxy_prog.cpp +++ b/src/metaproxy_prog.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2009 Index Data + Copyright (C) 2005-2010 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -27,8 +27,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include #include -#include "filter.hpp" -#include "package.hpp" +#include +#include #include "router_flexml.hpp" #include "factory_static.hpp" @@ -144,8 +144,11 @@ static int sc_main( return 1; } // and perform Xinclude then - if (xmlXIncludeProcess(doc) > 0) { - yaz_log (YLOG_LOG, "processing XInclude directive"); + int r = xmlXIncludeProcess(doc); + if (r == -1) + { + yaz_log(YLOG_FATAL, "XInclude processing failed"); + return 1; } mp::FactoryStatic factory; mp::RouterFleXML router(doc, factory, false); @@ -159,11 +162,11 @@ static int sc_main( return 1; } catch (std::runtime_error &e) { - yaz_log (YLOG_FATAL, "std::runtime error: %s" , e.what() ); + yaz_log(YLOG_FATAL, "std::runtime error: %s" , e.what() ); return 1; } catch ( ... ) { - yaz_log (YLOG_FATAL, "Unknown Exception"); + yaz_log(YLOG_FATAL, "Unknown Exception"); return 1; } return 0;