From 391bbaa4e79321fd59b7b2199fe6b0c1b9be8e8c 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 9e384b3a..61556375 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 e5e9f772..0a30675c 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);