The new CUDT::setError function is created as a good shortcut to set the error and return. This should replace all uses of CUDTUnited::setError that must be followed by the return. In the same change it would be nice to have some attempt to fix the problem of allocating memory during rewriting this error, as it is reported as inappropriate in case when it reports a memory allocation error.
The new
CUDT::setErrorfunction is created as a good shortcut to set the error and return. This should replace all uses ofCUDTUnited::setErrorthat must be followed by the return. In the same change it would be nice to have some attempt to fix the problem of allocating memory during rewriting this error, as it is reported as inappropriate in case when it reports a memory allocation error.