Changes re comments on PR279

This commit is contained in:
WandererFan
2016-09-12 07:41:24 -04:00
parent 3182ad1754
commit cfe30b8bdc
4 changed files with 10 additions and 17 deletions

View File

@@ -19,8 +19,8 @@ PyObject* DrawViewCollectionPy::addView(PyObject* args)
PyObject *pcDocObj;
if (!PyArg_ParseTuple(args, "O!", &(App::DocumentObjectPy::Type), &pcDocObj)) {
Base::Console().Error("Error: DrawViewClipPy::addView - Bad Arg - not DocumentObject\n");
return NULL;
PyErr_SetString(PyExc_TypeError, "DrawViewCollectionPy::addView - Bad Arg - not DocumentObject");
return nullptr;
}
DrawViewCollection* collect = getDrawViewCollectionPtr();
@@ -37,8 +37,8 @@ PyObject* DrawViewCollectionPy::removeView(PyObject* args)
PyObject *pcDocObj;
if (!PyArg_ParseTuple(args, "O!", &(App::DocumentObjectPy::Type), &pcDocObj)) {
Base::Console().Error("Error: DrawViewClipPy::addView - Bad Arg - not DocumentObject\n");
return NULL;
PyErr_SetString(PyExc_TypeError, "DrawViewCollectionPy::removeView - Bad Arg - not DocumentObject");
return nullptr;
}
DrawViewCollection* collect = getDrawViewCollectionPtr();