Commit a008394f authored by Charles Law's avatar Charles Law
Browse files

Better error reporting.

parent ec99d596
......@@ -53,10 +53,10 @@ protected:
void operator=(const vtkMultiProcessControllerRMI&);
};
vtkCxxRevisionMacro(vtkMultiProcessControllerRMI, "1.14");
vtkCxxRevisionMacro(vtkMultiProcessControllerRMI, "1.15");
vtkStandardNewMacro(vtkMultiProcessControllerRMI);
vtkCxxRevisionMacro(vtkMultiProcessController, "1.14");
vtkCxxRevisionMacro(vtkMultiProcessController, "1.15");
//----------------------------------------------------------------------------
// An RMI function that will break the "ProcessRMIs" loop.
......@@ -337,6 +337,7 @@ void vtkMultiProcessController::ProcessRMIs()
if (!this->RMICommunicator->Receive(triggerMessage, 3, ANY_SOURCE,
RMI_TAG))
{
vtkErrorMacro("Could not receive RMI trigger message.");
break;
}
if (triggerMessage[1] > 0)
......@@ -345,6 +346,7 @@ void vtkMultiProcessController::ProcessRMIs()
if (!this->RMICommunicator->Receive((char*)(arg), triggerMessage[1],
triggerMessage[2], RMI_ARG_TAG))
{
vtkErrorMacro("Could not receive RMI argument.");
break;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment