From 7c6a5986ef931cd0efb085b535c619c286c2cc80 Mon Sep 17 00:00:00 2001 From: Thomas Moulard <thomas.moulard@gmail.com> Date: Wed, 29 Dec 2010 01:32:04 +0100 Subject: [PATCH] Fix bad exception rethrow. --- src/dgraph/interpreter.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/dgraph/interpreter.cpp b/src/dgraph/interpreter.cpp index a59bb31..d4ab490 100644 --- a/src/dgraph/interpreter.cpp +++ b/src/dgraph/interpreter.cpp @@ -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; } } -- GitLab