mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fix error message output
This commit is contained in:
parent
029bd3476e
commit
88fee08547
@ -106,7 +106,7 @@ DTOOL_Call_GetPointerThisClass(PyObject *self, Dtool_PyTypedObject *classdef,
|
|||||||
ostringstream str;
|
ostringstream str;
|
||||||
str << function_name << "() argument " << param << " must be ";
|
str << function_name << "() argument " << param << " must be ";
|
||||||
|
|
||||||
PyObject *fname = PyObject_GetAttrString((PyObject *)classdef->_PyType.ob_type, "__name__");
|
PyObject *fname = PyObject_GetAttrString((PyObject *)classdef, "__name__");
|
||||||
if (fname != (PyObject *)NULL) {
|
if (fname != (PyObject *)NULL) {
|
||||||
str << PyString_AsString(fname);
|
str << PyString_AsString(fname);
|
||||||
Py_DECREF(fname);
|
Py_DECREF(fname);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user