Skip to content
Snippets Groups Projects
Commit 242c8f6c authored by Michael Davis's avatar Michael Davis
Browse files

[test] Explicitly handle all ArchiveJob report types

parent 760a9efe
No related branches found
No related tags found
No related merge requests found
......@@ -339,7 +339,6 @@ common::dataStructures::Tape SqliteCatalogue::selectTape(rdbms::Conn &conn, cons
// filesWrittenToTape
//------------------------------------------------------------------------------
void SqliteCatalogue::filesWrittenToTape(const std::set<TapeItemWrittenPointer> &events) {
throw exception::Exception("Something bad happened");
try {
if(events.empty()) {
return;
......
......@@ -133,6 +133,7 @@ std::string cta::ArchiveJob::reportType() {
throw exception::Exception("In ArchiveJob::reportType(): job status does not require reporting.");
}
}
throw exception::Exception("In ArchiveJob::reportType(): invalid report type.");
}
//------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment