Skip to content
Snippets Groups Projects
Commit 7c6a5986 authored by Thomas Moulard's avatar Thomas Moulard
Browse files

Fix bad exception rethrow.

parent 8ed2ab62
No related branches found
No related tags found
No related merge requests found
......@@ -196,12 +196,18 @@ cmdLoadPlugin( const std::string& cmdLine, std::istringstream& cmdArg, std::ostr
if( directory.length() != 0 ) dlPtr->setDirectory( directory );
dlPtr ->addPlugin( pluginName );
try{
dgDEBUG(15) << "Try to load " << pluginName<< endl;
dgDEBUG(25)<<"sotShell.dlPtr ="<< this->dlPtr <<endl;
dlPtr->loadPlugins();
dgDEBUG(25)<<"sotShell.dlPtr ="<< this->dlPtr <<endl;
}catch( ExceptionAbstract& e ) { dgDEBUG(5) << "ExceptionAbstract " << e << endl; throw e; }
try
{
dgDEBUG(15) << "Try to load " << pluginName<< endl;
dgDEBUG(25)<<"sotShell.dlPtr ="<< this->dlPtr <<endl;
dlPtr->loadPlugins();
dgDEBUG(25)<<"sotShell.dlPtr ="<< this->dlPtr <<endl;
}
catch (const ExceptionAbstract& e)
{
dgDEBUG(5) << "ExceptionAbstract " << e << endl;
throw;
}
}
else { os << "!! Dynamic loading functionalities not accessible through the shell." <<endl; }
}
......
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