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

[test] Removes const from catch()

parent c63155ba
No related branches found
No related tags found
No related merge requests found
......@@ -212,7 +212,7 @@ void cta::ArchiveMount::reportJobsBatchTransferred(std::queue<std::unique_ptr<ct
.add("schedulerDbTime", schedulerDbTime)
.add("totalTime", catalogueTime + schedulerDbTime + clientReportingTime);
logContext.log(log::INFO, "In ArchiveMount::reportJobsBatchWritten(): recorded a batch of archive jobs in metadata.");
} catch(const cta::exception::Exception& e){
} catch(cta::exception::Exception& e){
cta::log::ScopedParamContainer params(logContext);
params.add("exceptionMessageValue", e.getMessageValue());
if (job.get()) {
......@@ -225,7 +225,7 @@ void cta::ArchiveMount::reportJobsBatchTransferred(std::queue<std::unique_ptr<ct
const std::string msg_error="In ArchiveMount::reportJobsBatchWritten(): got an exception";
logContext.log(cta::log::ERR, msg_error);
throw cta::ArchiveMount::FailedMigrationRecallResult(msg_error);
} catch(const std::exception& e){
} catch(std::exception& e){
cta::log::ScopedParamContainer params(logContext);
params.add("exceptionWhat", e.what());
if (job.get()) {
......
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