From: rahuel Date: Wed, 19 May 2004 12:38:25 +0000 (+0000) Subject: If there is a syntax error in a python function (InLine Node), the states X-Git-Tag: Ecole_Ete_a6~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fd1eed7771f29375737829d167c8c3f7c85c3445;p=modules%2Fsuperv.git If there is a syntax error in a python function (InLine Node), the states of the node and of the graph are ErrorState instead of ReadyState. --- diff --git a/src/GraphExecutor/DataFlowExecutor_OutNode.cxx b/src/GraphExecutor/DataFlowExecutor_OutNode.cxx index 78b175c..d8031a4 100644 --- a/src/GraphExecutor/DataFlowExecutor_OutNode.cxx +++ b/src/GraphExecutor/DataFlowExecutor_OutNode.cxx @@ -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 ; } }