Commit 87e8805a authored by Cedric CAFFY's avatar Cedric CAFFY
Browse files

The frontend will log an error message in the cta-frontend.log file if the...

The frontend will log an error message in the cta-frontend.log file if the catalogue MAJOR schema version number mismatch and rethrow the exception to the XrdSsiCtaServiceProvider
parent 200f8b94
......@@ -123,7 +123,13 @@ void XrdSsiCtaServiceProvider::ExceptionThrowingInit(XrdSsiLogger *logP, XrdSsiC
auto catalogueFactory = catalogue::CatalogueFactoryFactory::create(*m_log, catalogueLogin,
catalogue_numberofconnections.second, nbArchiveFileListingConns);
m_catalogue = catalogueFactory->create();
m_catalogue->ping();
try{
m_catalogue->ping();
} catch(cta::exception::Exception& ex){
log::LogContext lc(*m_log);
lc.log(cta::log::ERR,ex.getMessageValue());
throw ex;
}
}
// Initialise the Backend
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment