]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Workspace.cxx
...
[cpPlugins.git] / lib / cpPlugins / Workspace.cxx
index 7ba11d1688feab1b435e6745d1fdf0bb7fede5bd..a63b749670717e43961d7709fe8f5a7da7e32d40 100644 (file)
@@ -394,38 +394,33 @@ GetExposedOutput( const std::string& name ) const
 }
 
 // -------------------------------------------------------------------------
-std::string cpPlugins::Workspace::
+void cpPlugins::Workspace::
 Execute( )
 {
   // Find sinks
   std::set< std::string > sinks = this->m_Graph->GetSinks( );
 
   // Update sinks
-  std::string err = "";
   for( auto sIt = sinks.begin( ); sIt != sinks.end( ); ++sIt )
-  {
-    std::string lerr = this->Execute( *sIt );
-    if( lerr != "" )
-      err += lerr + std::string( "\n" );
-
-  } // rof
-  return( err );
+    this->Execute( *sIt );
 }
 
 // -------------------------------------------------------------------------
-std::string cpPlugins::Workspace::
+void cpPlugins::Workspace::
 Execute( const std::string& name )
 {
   // Get filter
   ProcessObject* f = this->GetFilter( name );
   if( f == NULL )
-    return(
-      std::string( "cpPlugins::Workspace: Vertex \"" ) +
-      name + std::string( "\" is not a filter." )
+  {
+    itkGenericExceptionMacro( 
+      "cpPlugins::Workspace: Vertex \"" << name << "\" is not a filter."
       );
 
-  // Execute and return
-  return( f->Update( ) );
+  } // fi
+
+  // Execute
+  f->Update( );
 }
 
 // eof - $RCSfile$