Better error when setting thread names on Windows

This commit is contained in:
Kovid Goyal
2019-01-27 21:20:35 +05:30
parent c81c6c13b6
commit 0daad01a04
+1 -1
View File
@@ -513,7 +513,7 @@ static PyObject*
set_thread_name(PyObject *self, PyObject *args) {
(void)(self); (void)(args);
#if defined(_MSC_VER)
PyErr_SetString(PyExc_OSError, "Setting thread names not supported on windows");
PyErr_SetString(PyExc_RuntimeError, "Setting thread names not supported on Windows");
return NULL;
#else
char *name;