Commit f9591822 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

cta-dcache: fail delete request if getArchiveFileById fails

parent e9de7e40
......@@ -99,7 +99,8 @@ Status CtaRpcImpl::Delete(::grpc::ServerContext* context, const ::cta::dcache::r
try {
deleteRequest.archiveFile = m_catalogue->getArchiveFileById(deleteRequest.archiveFileID);
} catch (cta::exception::Exception &ex){
// TODO add logging
m_log->log(cta::log::CRIT, ex.getMessageValue());
return ::grpc::Status(::grpc::StatusCode::INTERNAL, ex.getMessageValue());
m_scheduler->deleteArchive(instance, deleteRequest, *m_log);
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