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

[test] Explicitly handle all ArchiveJob report types

parent c0cf36a0
No related branches found
No related tags found
No related merge requests found
......@@ -108,11 +108,12 @@ std::string cta::ArchiveJob::reportURL() {
new CryptoPP::StringSink(base64ErrorReport), noNewLineInBase64Output));
return m_dbJob->errorReportURL + base64ErrorReport;
}
default:
{
throw exception::Exception("In ArchiveJob::reportURL(): job status does not require reporting.");
}
case SchedulerDatabase::ArchiveJob::ReportType::NoReportRequired:
throw exception::Exception("In ArchiveJob::reportURL(): job status NoReportRequired does not require reporting.");
case SchedulerDatabase::ArchiveJob::ReportType::Report:
throw exception::Exception("In ArchiveJob::reportURL(): job status Report does not require reporting.");
}
throw exception::Exception("In ArchiveJob::reportURL(): 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