From fd1eed7771f29375737829d167c8c3f7c85c3445 Mon Sep 17 00:00:00 2001 From: rahuel Date: Wed, 19 May 2004 12:38:25 +0000 Subject: [PATCH] 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. --- src/GraphExecutor/DataFlowExecutor_OutNode.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ; } } -- 2.39.2