Skip to content
Snippets Groups Projects
Commit 7610964d authored by Steven Murray's avatar Steven Murray
Browse files

Fixed errors generated by Scheduler code passing getMessage() instead of...

Fixed errors generated by Scheduler code passing getMessage() instead of getMessage().str() to ScopedParamContainer.add()
parent 9ac3026e
Branches
Tags
No related merge requests found
......@@ -701,7 +701,7 @@ std::unique_ptr<TapeMount> Scheduler::getNextMount(const std::string &logicalLib
return std::unique_ptr<TapeMount> (internalRet.release());
} catch (cta::exception::Exception & ex) {
log::ScopedParamContainer params(lc);
params.add("Message", ex.getMessage());
params.add("Message", ex.getMessage().str());
lc.log(log::WARNING, "In Scheduler::getNextMount(): got an exception trying to schedule an archive mount. Trying others.");
continue;
}
......@@ -759,7 +759,7 @@ std::unique_ptr<TapeMount> Scheduler::getNextMount(const std::string &logicalLib
return std::unique_ptr<TapeMount> (internalRet.release());
} catch (exception::Exception & ex) {
log::ScopedParamContainer params(lc);
params.add("Message", ex.getMessage());
params.add("Message", ex.getMessage().str());
lc.log(log::WARNING, "In Scheduler::getNextMount(): got an exception trying to schedule a retrieve mount. Trying others.");
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment