Salome HOME
If there is a syntax error in a python function (InLine Node), the states
authorrahuel <rahuel@opencascade.com>
Wed, 19 May 2004 12:38:25 +0000 (12:38 +0000)
committerrahuel <rahuel@opencascade.com>
Wed, 19 May 2004 12:38:25 +0000 (12:38 +0000)
of the node and of the graph are ErrorState instead of ReadyState.

src/GraphExecutor/DataFlowExecutor_OutNode.cxx

index 78b175c49300e874b797a50139ba512901968212..d8031a47151b28a9cf208e57724c2f3e30439090 100644 (file)
@@ -521,8 +521,10 @@ bool GraphExecutor::OutNode::Run( const bool AndSuspend ) {
       GraphExecutor::InNode * anInNode = (GraphExecutor::InNode *) Graph()->GraphNodes( i )->GetInNode() ;
       if ( anInNode->IsOneOfInLineNodes() ) {
         if ( !anInNode->InitPythonFunctions( true ) ) {
-          cdebug << "GraphExecutor::OutNode::Run InitPythonFunctions ERROR "
-                 << anInNode->Name() << endl ;
+          anInNode->State( SUPERV::ErroredState ) ;
+          State( SUPERV::ErroredState ) ;
+          cdebug_out << "GraphExecutor::OutNode::Run InitPythonFunctions ERROR "
+                     << anInNode->Name() << endl ;
           return false ;
        }
       }