Path.Area: improved FeatureAreaPy error message

This commit is contained in:
Zheng, Lei
2017-03-22 04:46:49 +08:00
committed by wmayer
parent 6a5740cd5c
commit a63d293bee

View File

@@ -69,8 +69,7 @@ PyObject* FeatureAreaPy::setParams(PyObject *args, PyObject *keywds)
if (!PyArg_ParseTupleAndKeywords(args, keywds,
"|" PARAM_PY_KWDS(AREA_PARAMS_CONF), kwlist,
PARAM_REF(PARAM_FNAME,AREA_PARAMS_CONF)))
Py_Error(Base::BaseExceptionFreeCADError,
"Wrong parameters, call getParamsDesc() to get supported params");
return 0;
#define AREA_GET(_param) \
feature->PARAM_FNAME(_param).setValue(\