Commit de8d660a authored by Steven Murray's avatar Steven Murray
Browse files

Fixed 'catching polymorphic type class cta::exception::Exception by value' error in AcsMountCmd.cpp

parent 4f3a1fee
......@@ -43,7 +43,7 @@ int cta::mediachanger::acs::AcsMountCmd::exceptionThrowingMain(const int argc,
char *const *const argv) {
try {
m_cmdLine = AcsMountCmdLine(argc, argv);
} catch(cta::exception::Exception ex) {
} catch(cta::exception::Exception &ex) {
m_err << ex.getMessage().str() << std::endl;
m_err << std::endl;
m_err << m_cmdLine.getUsage() << std::endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment