Skip to content
Snippets Groups Projects
Commit 08604b9d authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan :coffee:
Browse files

cta-dcache: fail delete request if getArchiveFileById fails

parent e3d70fdb
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment