From a974c9f1b2bedc8725096c3fb737efff0751a2ff Mon Sep 17 00:00:00 2001 From: Edmond Mondor Date: Wed, 15 Dec 2021 09:23:54 -0800 Subject: [PATCH] Update error messages for new variable --- Sources/Plasma/FeatureLib/pfPython/cyMiscGlue3.cpp | 4 ++-- Sources/Plasma/FeatureLib/pfPython/cyMiscGlue4.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Plasma/FeatureLib/pfPython/cyMiscGlue3.cpp b/Sources/Plasma/FeatureLib/pfPython/cyMiscGlue3.cpp index f98eb956..3c6cf771 100644 --- a/Sources/Plasma/FeatureLib/pfPython/cyMiscGlue3.cpp +++ b/Sources/Plasma/FeatureLib/pfPython/cyMiscGlue3.cpp @@ -606,12 +606,12 @@ PYTHON_GLOBAL_METHOD_DEFINITION_WKEY(PtWearDefaultClothingType, args, kw, "Param bool broadcast = false; if (!PyArg_ParseTupleAndKeywords(args, kw, "Ol|b", kwlist, &keyObj, &type, &broadcast)) { - PyErr_SetString(PyExc_TypeError, "PtWearDefaultClothingType expects a ptKey and an unsigned long"); + PyErr_SetString(PyExc_TypeError, "PtWearDefaultClothingType expects a ptKey, an unsigned long, and an optional bool"); PYTHON_RETURN_ERROR; } if (!pyKey::Check(keyObj)) { - PyErr_SetString(PyExc_TypeError, "PtWearDefaultClothingType expects a ptKey and an unsigned long"); + PyErr_SetString(PyExc_TypeError, "PtWearDefaultClothingType expects a ptKey, an unsigned long, and an optional bool"); PYTHON_RETURN_ERROR; } pyKey* key = pyKey::ConvertFrom(keyObj); diff --git a/Sources/Plasma/FeatureLib/pfPython/cyMiscGlue4.cpp b/Sources/Plasma/FeatureLib/pfPython/cyMiscGlue4.cpp index 25bc726d..5f5d5a96 100644 --- a/Sources/Plasma/FeatureLib/pfPython/cyMiscGlue4.cpp +++ b/Sources/Plasma/FeatureLib/pfPython/cyMiscGlue4.cpp @@ -536,12 +536,12 @@ PYTHON_GLOBAL_METHOD_DEFINITION_WKEY(PtWearDefaultClothing, args, kw, "Params: k bool broadcast = false; if (!PyArg_ParseTupleAndKeywords(args, kw, "O|b", kwlist, &keyObj, &broadcast)) { - PyErr_SetString(PyExc_TypeError, "PtWearDefaultClothing expects a ptKey"); + PyErr_SetString(PyExc_TypeError, "PtWearDefaultClothing expects a ptKey and an optional bool"); PYTHON_RETURN_ERROR; } if (!pyKey::Check(keyObj)) { - PyErr_SetString(PyExc_TypeError, "PtWearDefaultClothing expects a ptKey"); + PyErr_SetString(PyExc_TypeError, "PtWearDefaultClothing expects a ptKey and an optional bool"); PYTHON_RETURN_ERROR; } pyKey* key = pyKey::ConvertFrom(keyObj);