Skip to content

Commit

Permalink
Path.Area: improved FeatureAreaPy error message
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder authored and wwmayer committed Mar 23, 2017
1 parent 40033ac commit dbfc65d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Mod/Path/App/FeatureAreaPyImp.cpp
Expand Up @@ -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(\
Expand Down

0 comments on commit dbfc65d

Please sign in to comment.