mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Better error when setting thread names on Windows
This commit is contained in:
parent
c81c6c13b6
commit
0daad01a04
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user